mobile-widgets/qml: add diveplanner pages to globalDrawer

Add "Dive planner" menu entry in GlobalDrawer/Developer
with 4 subitems one for each diveplanner pages.

Developer is chosen in order to allow interested access to
pages, without raising expectations for the normal user.

That allow a step-by-step implementation

Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2019-11-23 21:00:59 +01:00 committed by Dirk Hohndel
parent fac8d5b125
commit 0974c7524f

View file

@ -502,6 +502,38 @@ if you have network connectivity and want to sync your data to cloud storage."),
pageStack.push(themetest)
}
}
Kirigami.Action {
text: qsTr("Dive planner")
Kirigami.Action {
text: qsTr("Setup")
onTriggered: {
globalDrawer.close()
pageStack.push(divePlannerSetupWindow)
}
}
Kirigami.Action {
text: qsTr("Edit")
onTriggered: {
globalDrawer.close()
pageStack.push(divePlannerEditWindow)
}
}
Kirigami.Action {
text: qsTr("View")
onTriggered: {
globalDrawer.close()
pageStack.push(divePlannerViewWindow)
}
}
Kirigami.Action {
text: qsTr("Manager")
onTriggered: {
globalDrawer.close()
pageStack.push(divePlannerManagerWindow)
}
}
}
}
] // end actions
Image {
@ -845,6 +877,26 @@ if you have network connectivity and want to sync your data to cloud storage."),
visible: false
}
DivePlannerSetup {
id: divePlannerSetupWindow
visible: false
}
DivePlannerEdit {
id: divePlannerEditWindow
visible: false
}
DivePlannerView {
id: divePlannerViewWindow
visible: false
}
DivePlannerManager {
id: divePlannerManagerWindow
visible: false
}
ThemeTest {
id: themetest
visible: false