mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move the dive list qml code to a separate file for easier management. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
66 lines
979 B
QML
66 lines
979 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")
|
|
width: 500;
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|