diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml index 49d30facdd3f9a4fe3a845d07e0ad4e36ee5bd92..cfb1483881407fd8b8c276adc859075df2a41d87 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml @@ -7,26 +7,26 @@ QExtGroupBox { property var finished; property var backendColor property var oldMaximumHeight; - - property var startupCollapse: selectionChanged; - property var firstTime: true; + + property var startupCollapse: selectionChanged; + property var firstTime: true; onFinishedChanged: { oldMaximumHeight = maximumHeight; //visible = false; //visible = true; //if (finished) - //collapsed = true; + //collapsed = true; } - - onStartupCollapseChanged: { - oldMaximumHeight = maximumHeight; + + onStartupCollapseChanged: { + oldMaximumHeight = maximumHeight; if (!collapsed && firstTime) { - collapsed = true; - colorButton.checked = false; - firstTime = false; - } - } + collapsed = true; + colorButton.checked = false; + firstTime = false; + } + } property var baseStateFlag: isBaseState @@ -101,7 +101,7 @@ QExtGroupBox { } ColorButton { - id: colorButton + id: colorButton color: colorGroupBox.backendColor.value; checkable: true; checked: false; @@ -109,7 +109,7 @@ QExtGroupBox { minimumWidth: 18; onClicked: { - if (checked) { + if (checked) { colorGroupBox.collapsed = false; colorButtonWidget.visible = true; } else {