From 744e59688342ecdbbbadf1f2275b31d074647d7b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 1 May 2016 11:20:33 -0700 Subject: 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 --- mobile-widgets/qml/DiveDetailsView.qml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index 9ad229e20..f7b2980cc 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -140,7 +140,6 @@ Item { Layout.columnSpan: 4 } - // first row - here we set up the column widths - total is 90% of width Kirigami.Label { text: "Suit:" wrapMode: Text.WrapAtWordBoundaryOrAnywhere @@ -236,6 +235,20 @@ Item { Layout.maximumWidth: 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 { text: "Buddy:" -- cgit v1.2.3-70-g09d2