From b2a5ebc92621a9139e430380a68990027350c4e8 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 22 Sep 2014 16:11:43 +0200 Subject: [PATCH] Update hover effect to match QtQuickControls port Change-Id: Ib3ad938f24d2a7c9e5d8c6cdd5d6717b3574351a --- .../plasmacomponents/qml/styles/ToolButtonStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents/qml/styles/ToolButtonStyle.qml b/src/declarativeimports/plasmacomponents/qml/styles/ToolButtonStyle.qml index 23714b3ed..ead0cb591 100644 --- a/src/declarativeimports/plasmacomponents/qml/styles/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmacomponents/qml/styles/ToolButtonStyle.qml @@ -154,7 +154,7 @@ QtQuickControlStyle.ButtonStyle { width: Math.floor(parent.height/2) * 2 height: width //internal: if there is no hover status, don't paint on mouse over in touchscreens - opacity: (control.pressed || control.checked || !control.flat || (roundShadow.hasOverState && mouse.containsMouse)) ? 1 : 0 + opacity: (control.pressed || control.checked || !control.flat || (roundShadow.hasOverState && control.hovered)) ? 1 : 0 Behavior on opacity { PropertyAnimation { duration: units.longDuration } }