[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:
Kai Uwe Broulik 2016-02-09 11:03:59 +01:00
parent 1b2c1caf39
commit 3c03c950d6

View File

@ -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
}
}
}