From 5f5499a74f06cc55263ad36a199ed2d250e35958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 13 Jan 2012 12:21:28 +0100 Subject: [PATCH] Reload Aurorae buttons when the button settings changed --- .../aurorae/src/qml/AuroraeButtonGroup.qml | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/clients/aurorae/src/qml/AuroraeButtonGroup.qml b/clients/aurorae/src/qml/AuroraeButtonGroup.qml index 78eaf25bfa..f29a2d8ed9 100644 --- a/clients/aurorae/src/qml/AuroraeButtonGroup.qml +++ b/clients/aurorae/src/qml/AuroraeButtonGroup.qml @@ -18,15 +18,7 @@ import QtQuick 1.1 import org.kde.plasma.core 0.1 as PlasmaCore Item { - id: group - property string buttons - states: [ - State { name: "normal" }, - State { name: "maximized" } - ] - - Component.onCompleted: { - group.state = decoration.maximized ? "maximized" : "normal"; + function createButtons() { var component = Qt.createComponent("AuroraeButton.qml"); for (var i=0; i