summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-18 17:05:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-18 17:05:45 -0700
commit220d25588f6e7c17131dba1c07ad4b4b8ec7f559 (patch)
tree8c18ba73b18deec54521e5c8b06ffc34047e52b2 /mobile-widgets/qml
parent783f9ee565adc1aaaa37cf1f2c50a9c591aca038 (diff)
downloadsubsurface-220d25588f6e7c17131dba1c07ad4b4b8ec7f559.tar.gz
QML UI: enable caching of the details view
This way the dive on either side should be cached. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index c58c75023..35ef63579 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -189,6 +189,7 @@ Kirigami.Page {
highlightFollowsCurrentItem: true
focus: true
clip: false
+ cacheBuffer: parent.width * 3 // cache one item on either side (this is in pixels)
snapMode: ListView.SnapOneItem
onMovementEnded: {
currentIndex = indexAt(contentX+1, 1);