[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [koko] qmlUiKirigami: don't bleed an image into another
From: Marco Martin <null () kde ! org>
Date: 2017-06-30 13:29:08
Message-ID: E1dQvyu-0000wt-Uc () code ! kde ! org
[Download RAW message or body]
Git commit 54bf15b5bebbf29d9e9415386ad39925ab998d96 by Marco Martin.
Committed on 30/06/2017 at 13:28.
Pushed by mart into branch 'master'.
don't bleed an image into another
M +3 -0 qmlUiKirigami/ImageViewer.qml
https://commits.kde.org/koko/54bf15b5bebbf29d9e9415386ad39925ab998d96
diff --git a/qmlUiKirigami/ImageViewer.qml b/qmlUiKirigami/ImageViewer.qml
index ffaf546..2404a16 100644
--- a/qmlUiKirigami/ImageViewer.qml
+++ b/qmlUiKirigami/ImageViewer.qml
@@ -104,6 +104,8 @@ Rectangle {
anchors.fill: parent
orientation: Qt.Horizontal
snapMode: ListView.SnapOneItem
+ onMovementEnded: currentIndex = indexAt(contentX+1, 1);
+
delegate: Flickable {
id: flick
width: imageWidth
@@ -112,6 +114,7 @@ Rectangle {
contentHeight: imageHeight
interactive: contentWidth > width || contentHeight > height
onInteractiveChanged: listView.interactive = !interactive;
+ clip: true
z: index == listView.currentIndex ? 1000 : 0
Controls.ScrollBar.vertical: Controls.ScrollBar {}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic