make highlighted property work for roundbutton

This commit is contained in:
Marco Martin 2020-03-12 10:09:04 +01:00
parent 5a1b7a49d8
commit 6f34838f97

View File

@ -75,14 +75,14 @@ T.RoundButton {
Private.RoundShadow {
id: roundShadow
visible: !control.flat || control.activeFocus
visible: !control.flat || control.activeFocus || control.highlighted
anchors.fill: parent
state: {
if (control.pressed) {
return "hidden"
} else if (control.hovered) {
return "hover"
} else if (control.activeFocus) {
} else if (control.activeFocus || control.highlighted) {
return "focus"
} else {
return "shadow"