From 8874fddefceaaa86ad85717273ee58a5e84fd883 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 20 Jul 2016 21:07:19 +0200 Subject: Universal: determine the default hoverEnabled value from QStyleHints Change-Id: I76857a7ea88db3d47415580a83fa4431b732a0f2 Task-number: QTBUG-50003 Reviewed-by: Mitch Curtis --- src/imports/controls/universal/Dial.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/imports/controls/universal/Dial.qml') diff --git a/src/imports/controls/universal/Dial.qml b/src/imports/controls/universal/Dial.qml index fe4c4c71..64dca3da 100644 --- a/src/imports/controls/universal/Dial.qml +++ b/src/imports/controls/universal/Dial.qml @@ -44,6 +44,8 @@ T.Dial { implicitWidth: 100 implicitHeight: 100 + hoverEnabled: Qt.styleHints.useHoverEffects + background: Rectangle { x: control.width / 2 - width / 2 y: control.height / 2 - height / 2 -- cgit v1.2.3