diff options
author | Grace Karanja <gracie.karanja89@gmail.com> | 2015-08-19 10:18:26 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-31 15:49:09 -0700 |
commit | 9e53b3082c1641db91c3c229b94b7146f18fd955 (patch) | |
tree | a6ad022e91d5bfc0bc7360fe9a9c5378580ecd1b /qt-mobile | |
parent | ee13c5c2820a2549914ddd19d039ba1e3ebb1d08 (diff) | |
download | subsurface-9e53b3082c1641db91c3c229b94b7146f18fd955.tar.gz |
QML UI: Add ViewLog menu
Add a menu entry to show the application log.
Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/main.qml | 12 | ||||
-rw-r--r-- | qt-mobile/mobile-resources.qrc | 2 |
2 files changed, 14 insertions, 0 deletions
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 @@ <file>DiveList.qml</file> <file>DiveDetails.qml</file> <file>DownloadFromDiveComputer.qml</file> + <file>Log.qml</file> + <file>TopBar.qml</file> </qresource> </RCC> |