fix(StatusBaseButton): introduce missing `highlighted` property
This commit is contained in:
parent
dab12dc7c8
commit
a37489204c
|
@ -54,6 +54,7 @@ Rectangle {
|
|||
signal clicked(var mouse)
|
||||
signal pressAndHold(var mouse)
|
||||
|
||||
property bool highlighted: false
|
||||
|
||||
|
||||
/// Implementation
|
||||
|
@ -65,7 +66,7 @@ Rectangle {
|
|||
|
||||
color: {
|
||||
if (statusBaseButton.enabled) {
|
||||
return sensor.containsMouse ? hoverColor
|
||||
return sensor.containsMouse || highlighted ? hoverColor
|
||||
: normalColor
|
||||
} else {
|
||||
return disaledColor
|
||||
|
|
Loading…
Reference in New Issue