summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-05-27 13:34:55 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 14:17:14 -0700
commite2c1d24d02be8be0a056bd5bca65a619bf870831 (patch)
tree400a604f54ff644a2337741be051aedc07a9a132 /qt-mobile
parent424cf6ca5741f00331a016812a37deedb2e599cc (diff)
downloadsubsurface-e2c1d24d02be8be0a056bd5bca65a619bf870831.tar.gz
Add a menu to main.qml
Add a menu with an Exit submenu in the main.qml file. This closes the application when clicked. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/main.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index e69de29bb..52cfd9838 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -0,0 +1,18 @@
+import QtQuick 2.3
+import QtQuick.Controls 1.2
+import QtQuick.Window 2.2
+
+ApplicationWindow {
+ title: qsTr("Subsurface")
+ width: 500;
+ height: 700
+ menuBar: MenuBar {
+ Menu {
+ title: qsTr("File")
+ MenuItem {
+ text: qsTr("Exit")
+ onTriggered: Qt.quit();
+ }
+ }
+ }
+}