mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Simple DiveList as initial Page
Simplify the default page in main.qml: DiveList has everything needed, remove the outside layout and the message bar Signed-off-by: Marco Martin <notmart@gmail.com>
This commit is contained in:
parent
609d138a49
commit
8646934ba3
1 changed files with 4 additions and 38 deletions
|
@ -11,7 +11,6 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
||||||
MobileComponents.ApplicationWindow {
|
MobileComponents.ApplicationWindow {
|
||||||
title: qsTr("Subsurface mobile")
|
title: qsTr("Subsurface mobile")
|
||||||
property bool fullscreen: true
|
property bool fullscreen: true
|
||||||
property alias messageText: message.text
|
|
||||||
|
|
||||||
FontMetrics {
|
FontMetrics {
|
||||||
id: fontMetrics
|
id: fontMetrics
|
||||||
|
@ -208,44 +207,11 @@ MobileComponents.ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
property Item stackView: pageStack
|
property Item stackView: pageStack
|
||||||
initialPage: Item {
|
initialPage: DiveList {
|
||||||
width: parent.width
|
|
||||||
height: parent.height
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: awLayout
|
|
||||||
anchors.fill: parent
|
|
||||||
spacing: MobileComponents.Units.gridUnit / 2
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: detailsPage
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
DiveList {
|
|
||||||
anchors.fill: detailsPage
|
anchors.fill: detailsPage
|
||||||
id: diveDetails
|
id: diveDetails
|
||||||
color: MobileComponents.Theme.backgroundColor
|
color: MobileComponents.Theme.backgroundColor
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: messageArea
|
|
||||||
height: childrenRect.height
|
|
||||||
Layout.fillWidth: true
|
|
||||||
color: MobileComponents.Theme.backgroundColor
|
|
||||||
|
|
||||||
Text {
|
|
||||||
id: message
|
|
||||||
color: MobileComponents.Theme.textColor
|
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
||||||
styleColor: MobileComponents.Theme.textColor
|
|
||||||
font.pointSize: MobileComponents.Units.smallPointSize
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
QMLManager {
|
QMLManager {
|
||||||
id: manager
|
id: manager
|
||||||
|
|
Loading…
Add table
Reference in a new issue