aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/SliderHandle.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-09 17:14:02 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-11 07:18:31 +0000
commitd6b2c606b27227ffb3d86615d1c0c54a866e3b99 (patch)
treef1da9a751d9a639394b34947ea0b237776a7b133 /src/imports/controls/material/SliderHandle.qml
parent3d4de58050c85e31df79d867a8cba00b1d322cc4 (diff)
Material: fix ripple effect for RangeSlider
Only one handle should be hovered at a time. Task-number: QTBUG-50003 Change-Id: Id69325c651ef01a8da7ba6406fcf50f5b24a6959 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/SliderHandle.qml')
-rw-r--r--src/imports/controls/material/SliderHandle.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/controls/material/SliderHandle.qml b/src/imports/controls/material/SliderHandle.qml
index d8f7ef4f..62099dcc 100644
--- a/src/imports/controls/material/SliderHandle.qml
+++ b/src/imports/controls/material/SliderHandle.qml
@@ -46,6 +46,7 @@ Item {
property real value: 0
property bool handleHasFocus: false
property bool handlePressed: false
+ property bool handleHovered: false
readonly property int initialSize: 13
readonly property bool horizontal: control.orientation === Qt.Horizontal
readonly property var control: parent
@@ -70,7 +71,7 @@ Item {
y: (parent.height - height) / 2
width: 22; height: 22
pressed: root.handlePressed
- active: root.handlePressed || root.handleHasFocus || control.hovered
+ active: root.handlePressed || root.handleHasFocus || root.handleHovered
color: control.Material.checkBoxUncheckedRippleColor
}
}