aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 09:52:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 09:52:09 -0700
commit3472f2035491b9801058ea76a828e80f01b70f80 (patch)
tree191847c475a7ac65391efcd673e6f7f066d61993 /mobile-widgets
parent77e83e88432844d46cea2aef9f044945ebe66334 (diff)
downloadsubsurface-3472f2035491b9801058ea76a828e80f01b70f80.tar.gz
QML UI: dynamic page title for the root page
Subsurface-mobile is the name of the app, but not a good title for the Dive list / Cloud credential page Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 95af9a973..66583a175 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -9,7 +9,7 @@ import org.subsurfacedivelog.mobile 1.0
Kirigami.ScrollablePage {
id: page
objectName: "DiveList"
- title: "Subsurface-mobile"
+ title: "Dive list"
background: Rectangle {
color: Kirigami.Theme.viewBackgroundColor
}
@@ -220,8 +220,10 @@ Kirigami.ScrollablePage {
onVisibleChanged: {
if (visible) {
page.mainAction = page.saveAction
+ title = "Cloud credentials"
} else {
page.mainAction = page.addDiveAction
+ title = "Dive list"
}
}