From 0974c7524fe4f2817dfe1074265e96db8fbc5cf3 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 23 Nov 2019 21:00:59 +0100 Subject: 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 --- mobile-widgets/qml/main.qml | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'mobile-widgets/qml/main.qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index a7262c57d..c35e2b15e 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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 -- cgit v1.2.3-70-g09d2