From f8ed323fab46b65b34fe3aa4da24fd3e0c321dc8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 15 Nov 2011 15:54:55 +0100 Subject: [PATCH] fix immediate setting of tools --- declarativeimports/plasmacomponents/qml/ToolBar.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/qml/ToolBar.qml b/declarativeimports/plasmacomponents/qml/ToolBar.qml index 9b1a29ba0..28ccc779c 100644 --- a/declarativeimports/plasmacomponents/qml/ToolBar.qml +++ b/declarativeimports/plasmacomponents/qml/ToolBar.qml @@ -54,8 +54,10 @@ Item{ toolBar.tools = tools } Connections { + id: connection target: toolBar - onToolsChanged: { + function internalToolsChanged() + { var newContainer var oldContainer if (containerA.current) { @@ -116,6 +118,8 @@ Item{ newContainer.opacity = 1 oldContainer.opacity = 0 } + onToolsChanged: connection.internalToolsChanged() + Component.onCompleted: connection.internalToolsChanged() } PlasmaCore.FrameSvgItem {