summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-08-19 10:18:26 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 15:49:09 -0700
commit9e53b3082c1641db91c3c229b94b7146f18fd955 (patch)
treea6ad022e91d5bfc0bc7360fe9a9c5378580ecd1b
parentee13c5c2820a2549914ddd19d039ba1e3ebb1d08 (diff)
downloadsubsurface-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>
-rw-r--r--qt-mobile/main.qml12
-rw-r--r--qt-mobile/mobile-resources.qrc2
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>