From d96a8505d9772aee5258738ec3c484a0d70673cc Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Jan 2015 15:59:17 +0100 Subject: [PATCH] a check more on centering Change-Id: Ib22fcc6fe727c8b2b5ddc2473663c1e56b1dad09 CCBUG:342537 --- src/declarativeimports/plasmastyle/ToolButtonStyle.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml index 47e9c9145..3d4b8daab 100644 --- a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml @@ -168,6 +168,7 @@ QtQuickControlStyle.ButtonStyle { elementId: (control.pressed || control.checked) ? "pressed" : "normal" width: Math.floor(parent.height/2) * 2 height: width + anchors.centerIn: parent //internal: if there is no hover status, don't paint on mouse over in touchscreens opacity: (control.pressed || control.checked || !style.flat || (roundShadow.hasOverState && control.hovered)) ? 1 : 0 Behavior on opacity {