diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 11:55:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 11:57:14 -0700 |
commit | 4f34513277ed93626d2897ca5d636defa83abbff (patch) | |
tree | 87f0af3c20e7be88613e072fbb5e0eecf54a34b6 /mobile-widgets | |
parent | d941384fb69ba7d9c6b040d3371e2957053cd936 (diff) | |
download | subsurface-4f34513277ed93626d2897ca5d636defa83abbff.tar.gz |
QML UI: DiveDetailsView: move profile into bottom layout
Then we can remove the main layout and create a similar look as we now have
in the dive list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsView.qml | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/mobile-widgets/qml/DiveDetailsView.qml b/mobile-widgets/qml/DiveDetailsView.qml index 3454259d8..74adbb980 100644 --- a/mobile-widgets/qml/DiveDetailsView.qml +++ b/mobile-widgets/qml/DiveDetailsView.qml @@ -90,7 +90,19 @@ Item { Kirigami.Label { text: dive.duration wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere + } + GridLayout { + id: bottomLayout + anchors { + top: mainLayout.bottom + left: parent.left + right: parent.right + margins: Math.round(Kirigami.Units.gridUnit / 2) + topMargin: Kirigami.Units.gridUnit * 2 } + columns: 3 + rowSpacing: Kirigami.Units.smallSpacing * 2 + columnSpacing: Kirigami.Units.smallSpacing QMLProfile { id: qmlProfile @@ -98,7 +110,7 @@ Item { Layout.fillWidth: true Layout.preferredHeight: Layout.minimumHeight Layout.minimumHeight: width * 0.75 - Layout.columnSpan: 4 + Layout.columnSpan: 3 clip: false Rectangle { color: "transparent" @@ -112,24 +124,11 @@ Item { id: noProfile visible: dive.noDive Layout.fillWidth: true - Layout.columnSpan: 4 + Layout.columnSpan: 3 Layout.margins: Kirigami.Units.gridUnit horizontalAlignment: Text.AlignHCenter text: qsTr("No profile to show") } - } - GridLayout { - id: bottomLayout - anchors { - top: mainLayout.bottom - left: parent.left - right: parent.right - margins: Math.round(Kirigami.Units.gridUnit / 2) - } - columns: 3 - rowSpacing: Kirigami.Units.smallSpacing * 2 - columnSpacing: Kirigami.Units.smallSpacing - Kirigami.Heading { Layout.fillWidth: true level: 3 |