QML UI: set the title of the right object

Intended was here to set the title of the Dive list with id: page,
instead of the startpage object.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-07-31 16:37:15 +02:00 committed by Dirk Hohndel
parent 48ff047086
commit 50891c838e

View file

@ -273,17 +273,17 @@ Kirigami.ScrollablePage {
if (visible) {
page.actions.main = page.saveAction
page.actions.right = page.offlineAction
title = qsTr("Cloud credentials")
page.title = qsTr("Cloud credentials")
} else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD) {
page.actions.main = page.downloadFromDCAction
page.actions.right = page.addDiveAction
title = qsTr("Dive list")
page.title = qsTr("Dive list")
if (diveListView.count === 0)
showPassiveNotification(qsTr("Please tap the '+' button to add a dive (or download dives from a supported dive computer)"), 3000)
} else {
page.actions.main = null
page.actions.right = null
title = qsTr("Dive list")
page.title = qsTr("Dive list")
}
}
onVisibleChanged: {