From e196ad0729df5526cfa04244d35e60c23a52ebf2 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Mon, 1 Mar 2010 08:18:56 +0100 Subject: [PATCH] QmlDesigner.propertyEditor: cleanup of qml --- .../propertyeditor/Qt/ColorGroupBox.qml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/ColorGroupBox.qml index 49d30facdd3..cfb14838814 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 { -- GitLab