mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4687de8c82
commit
b83dcc4b25
2 changed files with 14 additions and 10 deletions
|
@ -20,6 +20,14 @@ Kirigami.ScrollablePage {
|
||||||
property QtObject diveListModel: diveTripModel
|
property QtObject diveListModel: diveTripModel
|
||||||
property string numShownText
|
property string numShownText
|
||||||
|
|
||||||
|
opacity: 0
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: 200
|
||||||
|
easing.type: Easing.OutQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
supportsRefreshing: true
|
supportsRefreshing: true
|
||||||
onRefreshingChanged: {
|
onRefreshingChanged: {
|
||||||
if (refreshing) {
|
if (refreshing) {
|
||||||
|
|
|
@ -708,16 +708,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pageStack.initialPage: DiveList {
|
pageStack.initialPage: diveList
|
||||||
id: diveList
|
|
||||||
opacity: 0
|
|
||||||
Behavior on opacity {
|
|
||||||
NumberAnimation {
|
|
||||||
duration: 200
|
|
||||||
easing.type: Easing.OutQuad
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property int hackToOpenMap: 0 /* Otherpage */
|
property int hackToOpenMap: 0 /* Otherpage */
|
||||||
/* I really want an enum, but those are painful in QML, so let's use numbers
|
/* 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
|
id: manager
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DiveList {
|
||||||
|
id: diveList
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
id: settingsWindow
|
id: settingsWindow
|
||||||
visible: false
|
visible: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue