From 611c4bb088f856355e5c038e5c533af544b7f02a Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 20 Dec 2019 08:16:52 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'mobile-widgets/qml/DiveList.qml') 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 -- cgit v1.2.3-70-g09d2