From b83dcc4b2543d6c33a665c5e3b18c2d088635b52 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 19 Dec 2019 11:44:20 +0100 Subject: mobile UI/login: make divelist a proper object in main Instanciate DiveList like all the other pages. Move DiveList properties set in main to DiveList.qml Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 8 ++++++++ mobile-widgets/qml/main.qml | 16 ++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 0b3f40ade..7b441b521 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -20,6 +20,14 @@ Kirigami.ScrollablePage { property QtObject diveListModel: diveTripModel property string numShownText + opacity: 0 + Behavior on opacity { + NumberAnimation { + duration: 200 + easing.type: Easing.OutQuad + } + } + supportsRefreshing: true onRefreshingChanged: { if (refreshing) { diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 7e859936c..b20ce4262 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -708,16 +708,7 @@ if you have network connectivity and want to sync your data to cloud storage."), } } - pageStack.initialPage: DiveList { - id: diveList - opacity: 0 - Behavior on opacity { - NumberAnimation { - duration: 200 - easing.type: Easing.OutQuad - } - } - } + pageStack.initialPage: diveList property int hackToOpenMap: 0 /* Otherpage */ /* I really want an enum, but those are painful in QML, so let's use numbers @@ -783,6 +774,11 @@ if you have network connectivity and want to sync your data to cloud storage."), id: manager } + DiveList { + id: diveList + visible: false + } + Settings { id: settingsWindow visible: false -- cgit v1.2.3-70-g09d2