[ToolButtonStyle] Don't rely on an outside ID
If you use Plasma's ToolButtonStyle with different controls than the PlasmaComponents.ToolButton it prints a warning about an ID that does not exist. Use "control" instead which is guaranteed to be the item.
This commit is contained in:
parent
1b2c1caf39
commit
3c03c950d6
@ -197,9 +197,9 @@ QtQuickControlStyle.ButtonStyle {
|
||||
target: control
|
||||
onHoveredChanged: {
|
||||
if (style.controlHovered) {
|
||||
button.z += 2
|
||||
control.z += 2
|
||||
} else {
|
||||
button.z -= 2
|
||||
control.z -= 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user