diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-14 06:33:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 17:26:46 -0700 |
commit | 9028c807b2ca1e9c8bba4a570c4c780cc962ca61 (patch) | |
tree | bd3f2bd03397b285244ec4ea4604c09341f4efc1 /packaging/ios/Subsurface-mobile/main.qml | |
parent | 32e6cde5481ec325f415a2a9953441ecb0091414 (diff) | |
download | subsurface-9028c807b2ca1e9c8bba4a570c4c780cc962ca61.tar.gz |
Change names of iOS build files
The name subsurface-ios was used in many places and that was just not helpful
to fight against. This should work much better.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios/Subsurface-mobile/main.qml')
-rw-r--r-- | packaging/ios/Subsurface-mobile/main.qml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/ios/Subsurface-mobile/main.qml b/packaging/ios/Subsurface-mobile/main.qml new file mode 100644 index 000000000..26b1a7998 --- /dev/null +++ b/packaging/ios/Subsurface-mobile/main.qml @@ -0,0 +1,40 @@ +import QtQuick 2.6 +import QtQuick.Controls 1.5 +import QtQuick.Dialogs 1.2 + +ApplicationWindow { + visible: true + width: 640 + height: 480 + title: qsTr("Hello World") + + menuBar: MenuBar { + Menu { + title: qsTr("File") + MenuItem { + text: qsTr("&Open") + onTriggered: console.log("Open action triggered"); + } + MenuItem { + text: qsTr("Exit") + onTriggered: Qt.quit(); + } + } + } + + MainForm { + anchors.fill: parent + button1.onClicked: messageDialog.show(qsTr("Button 1 pressed")) + button2.onClicked: messageDialog.show(qsTr("Button 2 pressed")) + } + + MessageDialog { + id: messageDialog + title: qsTr("May I have your attention, please?") + + function show(caption) { + messageDialog.text = caption; + messageDialog.open(); + } + } +} |