diff --git a/clients/aurorae/src/qml/ButtonGroup.qml b/clients/aurorae/src/qml/ButtonGroup.qml index 578bb753bf..be2156de43 100644 --- a/clients/aurorae/src/qml/ButtonGroup.qml +++ b/clients/aurorae/src/qml/ButtonGroup.qml @@ -22,7 +22,7 @@ Item { var component = undefined; switch (buttons.charAt(i)) { case "_": - var button = Qt.createQmlObject("import QtQuick 1.1; Item{ width: " + group.explicitSpacer + "; height: parent.height}", groupRow, "dynamicGroup_" + buttons + i); + component = explicitSpacerComponent; break; case "A": component = group.maximizeButton; @@ -85,4 +85,12 @@ Item { } createButtons(); } + + Component { + id: explicitSpacerComponent + Item { + width: group.explicitSpacer + height: groupRow.height + } + } }