summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Marco Martin <notmart@gmail.com>2015-11-29 22:51:49 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 23:58:49 +0100
commit8646934ba351e092089876a018a3e4886cc98794 (patch)
treef615b826f37fd786bfd9cb146091c3be57516750 /qt-mobile
parent609d138a490ed6eddfd4594775cef157f8ceaf61 (diff)
downloadsubsurface-8646934ba351e092089876a018a3e4886cc98794.tar.gz
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>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/main.qml42
1 files changed, 4 insertions, 38 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 53d872743..26b8ed0e6 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -11,7 +11,6 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
MobileComponents.ApplicationWindow {
title: qsTr("Subsurface mobile")
property bool fullscreen: true
- property alias messageText: message.text
FontMetrics {
id: fontMetrics
@@ -208,43 +207,10 @@ MobileComponents.ApplicationWindow {
}
property Item stackView: pageStack
- initialPage: Item {
- 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
- id: diveDetails
- 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
- }
- }
- }
+ initialPage: DiveList {
+ anchors.fill: detailsPage
+ id: diveDetails
+ color: MobileComponents.Theme.backgroundColor
}
QMLManager {