summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-30 20:17:21 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-30 20:17:41 -0500
commit13c49276d1d4892c047a8dfc1a817fee98469736 (patch)
tree71cdd3654f6b2c0875fd59bb6e430493b1b22298 /qt-mobile
parent27a62a021058342a32fd8670207b662779f9193e (diff)
downloadsubsurface-13c49276d1d4892c047a8dfc1a817fee98469736.tar.gz
Revert "QML UI: make dive list fold dive trips"
This reverts commit 83c72e7a79458826b677e82f108f3e92022c58b6. The folding as implemented is too painfully slow and buggy on devices. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveList.qml10
1 files changed, 0 insertions, 10 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 988221efd..dd4b955b6 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -14,15 +14,12 @@ MobileComponents.Page {
property int credentialStatus: manager.credentialStatus
property int numDives: diveListView.count
property color textColor: subsurfaceTheme.diveListTextColor
- property string activeTrip
Component {
id: diveDelegate
MobileComponents.ListItem {
enabled: true
checked: diveListView.currentIndex === model.index
width: parent.width
- height: dive.tripMeta == activeTrip ? diveDelegateItem.height : 0
- visible: dive.tripMeta == activeTrip ? true : false
property real detailsOpacity : 0
property int horizontalPadding: MobileComponents.Units.gridUnit / 2 - MobileComponents.Units.smallSpacing + 1
@@ -37,7 +34,6 @@ MobileComponents.Page {
}
Item {
- id: diveDelegateItem
width: parent.width - MobileComponents.Units.gridUnit
height: childrenRect.height - MobileComponents.Units.smallSpacing
@@ -139,12 +135,6 @@ MobileComponents.Page {
}
color: textColor
level: 2
- MouseArea {
- anchors.fill: sectionText
- onClicked: {
- activeTrip = section
- }
- }
}
Rectangle {
height: Math.max(2, MobileComponents.Units.gridUnit / 12) // we want a thicker line