diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2015-07-30 10:17:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-30 10:13:25 -0700 |
commit | fc746c212919ccf2835ced673b97d5dfb501e0f6 (patch) | |
tree | e8668685d9eda6194f0bb49cd32f1b67eae83523 /qt-mobile | |
parent | a09cfb8e98dea0fdc5133d08690262cd7e9260e9 (diff) | |
download | subsurface-fc746c212919ccf2835ced673b97d5dfb501e0f6.tar.gz |
QML UI: move back button back to the left and center text
The top bars on the main page and dive details should be the same height
and keep the same layout.
[Dirk Hohndel: refactored Joakim's patch to work on top of what was
already in master]
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/DiveDetails.qml | 15 | ||||
-rw-r--r-- | qt-mobile/main.qml | 2 |
2 files changed, 10 insertions, 7 deletions
diff --git a/qt-mobile/DiveDetails.qml b/qt-mobile/DiveDetails.qml index e8bcedaaa..3c5120a85 100644 --- a/qt-mobile/DiveDetails.qml +++ b/qt-mobile/DiveDetails.qml @@ -49,18 +49,11 @@ Item { anchors.leftMargin: prefsButton.height * 0.1 anchors.right: topBar.right anchors.rightMargin: prefsButton.height * 0.1 - Text { - text: qsTr("Subsurface mobile") - font.pointSize: 18 - font.bold: true - color: "white" - } Button { id: backButton Layout.maximumHeight: prefsButton.height Layout.minimumHeight: prefsButton.height Layout.preferredWidth: Screen.width * 0.1 - anchors.right: parent.right text: "\u2190" style: ButtonStyle { background: Rectangle { @@ -88,6 +81,14 @@ Item { stackView.pop(); } } + Text { + text: qsTr("Subsurface mobile") + font.pointSize: 18 + font.bold: true + color: "white" + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + } } } GridLayout { diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml index 63ff5b5b4..24ebb40ed 100644 --- a/qt-mobile/main.qml +++ b/qt-mobile/main.qml @@ -81,6 +81,8 @@ ApplicationWindow { font.pointSize: 18 font.bold: true color: "white" + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter } Button { id: prefsButton |