subsurface/qt-mobile/main.qml
Dirk Hohndel 4088f9f652 QML UI: set window size on desktop devices
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>
2015-07-12 10:52:15 -07:00

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
}
}
}
}