mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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>
This commit is contained in:
parent
77e83e8843
commit
3472f20354
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue