From 8d03d264807930b110f3f3f62f5fd42887f80e3e Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Mon, 10 Aug 2015 08:35:47 +0300 Subject: QML UI: Start Add Dive feature Start working on the add dive feature, to enable the user add a new dive using the mobile UI. Signed-off-by: Grace Karanja --- qt-mobile/main.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qt-mobile/main.qml') diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml index 24ebb40ed..76d8836ed 100644 --- a/qt-mobile/main.qml +++ b/qt-mobile/main.qml @@ -37,6 +37,16 @@ ApplicationWindow { stackView.push(downloadDivesWindow) } } + + MenuItem { + text: "Add Dive" + onTriggered: { + manager.addDive(); + detailsWindow.clearDetails() + stackView.push(detailsWindow) + } + } + MenuItem { text: "Save Changes" onTriggered: { -- cgit v1.2.3-70-g09d2