summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2013-12-04 14:27:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-04 14:32:26 +0100
commit9506149ecf6775dbc925d9c75439972189e5ef1a (patch)
treeae2f881ff311d3e8861f73d01a86f46fc273fada
parente300335a19b7125e6777d07065ac1314bcde2ca1 (diff)
downloadqtquickcontrols-9506149ecf6775dbc925d9c75439972189e5ef1a.tar.gz
Make slider's style react to mouse hover
Paints the hover highlight around the slider handle when mouse hovers it. Change-Id: I883d5c5b97b0542a36e796ce6a07398ab67e94bd Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r--src/controls/Styles/Desktop/SliderStyle.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/Styles/Desktop/SliderStyle.qml b/src/controls/Styles/Desktop/SliderStyle.qml
index fd426e35..022570b2 100644
--- a/src/controls/Styles/Desktop/SliderStyle.qml
+++ b/src/controls/Styles/Desktop/SliderStyle.qml
@@ -57,6 +57,7 @@ Style {
horizontal: control.orientation === Qt.Horizontal
enabled: control.enabled
hasFocus: control.activeFocus
+ hover: control.hovered
hints: control.styleHints
activeControl: control.tickmarksEnabled ? "ticks" : ""
property int handleWidth: 15