aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-20 08:16:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-24 15:53:15 -0800
commit611c4bb088f856355e5c038e5c533af544b7f02a (patch)
tree190f1a8e8037dcb6a8fa186f16cd98a4ff876277 /mobile-widgets/qml/DiveList.qml
parent11810d5d0677ea1845ac4272c8578010132a8e1e (diff)
downloadsubsurface-611c4bb088f856355e5c038e5c533af544b7f02a.tar.gz
mobile UI/login: move startpage to main
StartPage does not belong in divelist. Remove startPage from diveList and anchor in main. Make needed functional changes. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml24
1 files changed, 1 insertions, 23 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 52861443a..4fb38450d 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -42,8 +42,7 @@ Kirigami.ScrollablePage {
}
}
}
-// this will be: onVisibleChanged: {
- function simulateVisibleChanged() {
+ onVisibleChanged: {
console.log("---> DiveList changed visibility to " + visible)
if (visible) {
page.actions.main = page.downloadFromDCAction
@@ -402,27 +401,6 @@ Kirigami.ScrollablePage {
}
}
- StartPage {
- id: startPage
- anchors.fill: parent
- opacity: (credentialStatus === CloudStatus.CS_NOCLOUD ||
- credentialStatus === CloudStatus.CS_VERIFIED) ? 0 : 1
- visible: opacity > 0
- Behavior on opacity { NumberAnimation { duration: Kirigami.Units.shortDuration } }
- onVisibleChanged: {
- console.log("---> Startpage changed visibility to " + visible)
- if (visible) {
- page.actions.main = null
- page.actions.right = null
- page.actions.left = null
- page.title = qsTr("Cloud credentials")
- } else {
- // This is to be removed when StartPage becomes a proper page
- page.simulateVisibleChanged()
- }
- }
- }
-
Controls.Label {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter