From 9e53b3082c1641db91c3c229b94b7146f18fd955 Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Wed, 19 Aug 2015 10:18:26 +0300 Subject: QML UI: Add ViewLog menu Add a menu entry to show the application log. Signed-off-by: Grace Karanja --- qt-mobile/main.qml | 12 ++++++++++++ qt-mobile/mobile-resources.qrc | 2 ++ 2 files changed, 14 insertions(+) diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml index 33215f0df..b249a333a 100644 --- a/qt-mobile/main.qml +++ b/qt-mobile/main.qml @@ -52,6 +52,13 @@ ApplicationWindow { manager.saveChanges(); } } + + MenuItem { + text: "View Log" + onTriggered: { + stackView.push(logWindow) + } + } } StackView { @@ -169,4 +176,9 @@ ApplicationWindow { id: downloadDivesWindow visible: false } + + Log { + id: logWindow + visible: false + } } diff --git a/qt-mobile/mobile-resources.qrc b/qt-mobile/mobile-resources.qrc index 969f727d9..cb31d7ea1 100644 --- a/qt-mobile/mobile-resources.qrc +++ b/qt-mobile/mobile-resources.qrc @@ -6,5 +6,7 @@ DiveList.qml DiveDetails.qml DownloadFromDiveComputer.qml + Log.qml + TopBar.qml -- cgit v1.2.3-70-g09d2