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:
parent
0aca608bda
commit
4e9f3dd129
@ -34,7 +34,7 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
|
|
||||||
property int minimumWidth
|
property int minimumWidth
|
||||||
property int minimumHeight
|
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 {
|
label: Item {
|
||||||
//wrapper is needed as we are adjusting the preferredHeight of the layout from the default
|
//wrapper is needed as we are adjusting the preferredHeight of the layout from the default
|
||||||
//and the implicitHeight is implicitly read only
|
//and the implicitHeight is implicitly read only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user