aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/SwipeDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-20 15:13:06 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-20 14:39:24 +0000
commitf0bd1181235b4e4e92876f56487b17b595841758 (patch)
treea41c8cb0a53cbef850b6a3cf53f55bc3e266999b /src/imports/controls/material/SwipeDelegate.qml
parent8291869b51c0afe8763df6f932b4e8fef463371c (diff)
Material: add missing ripple effect to SwipeDelegate
Task-number: QTBUG-54764 Change-Id: Ie04c93a823745b6d0a85e0c80c91d4e7f77f6fcd Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/SwipeDelegate.qml')
-rw-r--r--src/imports/controls/material/SwipeDelegate.qml18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/imports/controls/material/SwipeDelegate.qml b/src/imports/controls/material/SwipeDelegate.qml
index 28fc6c2e..4acf4524 100644
--- a/src/imports/controls/material/SwipeDelegate.qml
+++ b/src/imports/controls/material/SwipeDelegate.qml
@@ -83,9 +83,21 @@ T.SwipeDelegate {
Rectangle {
width: parent.width
height: parent.height
- visible: control.down || control.highlighted || control.visualFocus
- color: control.visualFocus || control.hovered ? control.Material.swipeDelegateHoverColor :
- control.Material.listHighlightColor
+ visible: control.highlighted
+ color: control.Material.listHighlightColor
+ }
+
+ Ripple {
+ width: parent.width
+ height: parent.height
+
+ clip: visible
+ trigger: Ripple.Release
+ pressed: control.pressed
+ anchor: control
+ active: control.down || control.visualFocus || control.hovered
+ color: control.Material.checkBoxUncheckedRippleColor
+ enabled: control.swipe.position === 0
}
Behavior on x {