mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: break grid layout into smaller layouts
Since the big layout causes an infinite recursion in the Qt/QML layout engine. Also remove a no longer accurate comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
22e225fc77
commit
744e596883
1 changed files with 14 additions and 1 deletions
|
@ -140,7 +140,6 @@ Item {
|
||||||
Layout.columnSpan: 4
|
Layout.columnSpan: 4
|
||||||
}
|
}
|
||||||
|
|
||||||
// first row - here we set up the column widths - total is 90% of width
|
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
text: "Suit:"
|
text: "Suit:"
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
|
@ -236,6 +235,20 @@ Item {
|
||||||
Layout.maximumWidth: detailsView.col4Width
|
Layout.maximumWidth: detailsView.col4Width
|
||||||
Layout.preferredWidth: detailsView.col4Width
|
Layout.preferredWidth: detailsView.col4Width
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// clearly, Qt 5.6.0 is buggy as having this as one GridLayout
|
||||||
|
// causes crashes
|
||||||
|
GridLayout {
|
||||||
|
id: bottomLayout2
|
||||||
|
anchors {
|
||||||
|
top: bottomLayout.bottom
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
margins: Math.round(Kirigami.Units.gridUnit / 2)
|
||||||
|
}
|
||||||
|
columns: 4
|
||||||
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
text: "Buddy:"
|
text: "Buddy:"
|
||||||
|
|
Loading…
Add table
Reference in a new issue