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