diff options
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index 07b437c99..9664c95a3 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -145,18 +145,11 @@ MobileComponents.Page { anchors.fill: parent model: diveModel currentIndex: -1 - Connections { - target: detailsWindow - onCurrentIndexChanged: diveListView.currentIndex = detailsWindow.currentIndex - } delegate: diveDelegate boundsBehavior: Flickable.StopAtBounds maximumFlickVelocity: parent.height * 5 - cacheBuffer: Math.max(5000, parent.height * 5) - //highlight: Rectangle { color: MobileComponents.Theme.highlightColor; width: MobileComponents.Units.smallSpacing } - focus: true - clip: true - section.property: "trip" + cacheBuffer: 0 // seems to avoid empty rendered profiles + section.property: "trip" // FIXME: "dive.trip" gives weird section labels. section.criteria: ViewSection.FullString section.delegate: tripHeading header: MobileComponents.Heading { @@ -168,6 +161,10 @@ MobileComponents.Page { opacity: 0.8 - startPage.opacity visible: opacity > 0 } + Connections { + target: detailsWindow + onCurrentIndexChanged: diveListView.currentIndex = detailsWindow.currentIndex + } } } StartPage { |