mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
fix misrendered profiles when fast-flicking
- Apparently, QMLProfile doesn't like being painted without being visible, when flicking quickly through the dives I would get empty rendered profiles. Setting the cachebuffer to zero fixes it, and saves some memory. It still has some unfortunate timing, the profile gets rendered mid-flick, which leads to a delay in the flicking motion, quite annoying. We will have to somehow make sure that new profiles are rendered after flicking, not during - Smallish cleanups Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
parent
7e9648c5cb
commit
8199c13f42
1 changed files with 6 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue