From 3c03c950d6aecc54761cfaa1c1a95ce36a754dd5 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 9 Feb 2016 11:03:59 +0100 Subject: [PATCH] [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. --- src/declarativeimports/plasmastyle/ToolButtonStyle.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml index 711609407..156259081 100644 --- a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml @@ -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 } } }