Don't change the flat-iness of a button on pressed

Changes the background component on press, looks odd.

Reviewed by Marco Martin
This commit is contained in:
Aleix Pol 2015-08-05 18:25:04 +02:00
parent 0aca608bda
commit 4e9f3dd129

View File

@ -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