summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index 52cfd9838..a98fb14d6 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -1,15 +1,28 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Window 2.2
+import QtQuick.Dialogs 1.2
ApplicationWindow {
title: qsTr("Subsurface")
width: 500;
height: 700
+
+ FileDialog {
+ id: fileOpen
+ selectExisting: true
+ selectMultiple: true
+ }
+
menuBar: MenuBar {
Menu {
title: qsTr("File")
MenuItem {
+ text: qsTr("Open")
+ onTriggered: fileOpen.open()
+ }
+
+ MenuItem {
text: qsTr("Exit")
onTriggered: Qt.quit();
}