mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
On Android the app figures out the size by itself. Also change the name to match our naming scheme (Subsurface mobile for the QML UI). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
67 lines
1,020 B
QML
67 lines
1,020 B
QML
import QtQuick 2.3
|
|
import QtQuick.Controls 1.2
|
|
import QtQuick.Window 2.2
|
|
import QtQuick.Dialogs 1.2
|
|
import QtQuick.Layouts 1.1
|
|
import org.subsurfacedivelog.mobile 1.0
|
|
|
|
ApplicationWindow {
|
|
title: qsTr("Subsurface mobile")
|
|
property bool fullscreen: true
|
|
visible: true
|
|
|
|
QMLManager {
|
|
id: manager
|
|
}
|
|
|
|
Preferences {
|
|
id: prefsWindow
|
|
}
|
|
|
|
ColumnLayout {
|
|
id: layout
|
|
anchors.fill: parent
|
|
spacing: 4
|
|
|
|
Rectangle {
|
|
id: topPart
|
|
height: 35
|
|
Layout.fillWidth: true
|
|
Layout.maximumHeight: 35
|
|
|
|
RowLayout {
|
|
Button {
|
|
id: prefsButton
|
|
text: "Preferences"
|
|
onClicked: {
|
|
prefsWindow.show()
|
|
}
|
|
}
|
|
|
|
Button {
|
|
id: loadDivesButton
|
|
text: "Load Dives"
|
|
onClicked: {
|
|
manager.loadDives();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
Rectangle {
|
|
id: detailsPage
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
Layout.minimumWidth: 100
|
|
Layout.preferredHeight: 400
|
|
Layout.preferredWidth: 200
|
|
|
|
DiveList {
|
|
anchors.fill: detailsPage
|
|
id: diveDetails
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|