From 4e9f3dd129d6705628fb698848c3fe60b8d9dc3a Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 5 Aug 2015 18:25:04 +0200 Subject: [PATCH] Don't change the flat-iness of a button on pressed Changes the background component on press, looks odd. Reviewed by Marco Martin --- src/declarativeimports/plasmastyle/ToolButtonStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml index ae395ab08..487247768 100644 --- a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml @@ -34,7 +34,7 @@ QtQuickControlStyle.ButtonStyle { property int minimumWidth property int minimumHeight - property bool flat: control.flat !== undefined ? control.flat : !(control.pressed || (control.checkable && control.checked)) + property bool flat: control.flat !== undefined ? control.flat : !(control.checkable && control.checked) label: Item { //wrapper is needed as we are adjusting the preferredHeight of the layout from the default //and the implicitHeight is implicitly read only