mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
6ba5b45c00
Add a dialog to select dive files in the QML interface, and also add a menu entry to open the dialog. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
31 lines
461 B
QML
31 lines
461 B
QML
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();
|
|
}
|
|
}
|
|
}
|
|
}
|