a check more on centering

Change-Id: Ib22fcc6fe727c8b2b5ddc2473663c1e56b1dad09
CCBUG:342537
This commit is contained in:
Marco Martin 2015-01-13 15:59:17 +01:00
parent af0dffd89b
commit d96a8505d9

View File

@ -168,6 +168,7 @@ QtQuickControlStyle.ButtonStyle {
elementId: (control.pressed || control.checked) ? "pressed" : "normal" elementId: (control.pressed || control.checked) ? "pressed" : "normal"
width: Math.floor(parent.height/2) * 2 width: Math.floor(parent.height/2) * 2
height: width height: width
anchors.centerIn: parent
//internal: if there is no hover status, don't paint on mouse over in touchscreens //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 opacity: (control.pressed || control.checked || !style.flat || (roundShadow.hasOverState && control.hovered)) ? 1 : 0
Behavior on opacity { Behavior on opacity {