From e2c1d24d02be8be0a056bd5bca65a619bf870831 Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Wed, 27 May 2015 13:34:55 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-mobile/main.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'qt-mobile') 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(); + } + } + } +} -- cgit v1.2.3-70-g09d2