Skip to content
Snippets Groups Projects
Commit f1192c41 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: solve collapsing colorBoxes issues:

parent ba55311f
No related branches found
No related tags found
No related merge requests found
...@@ -9,15 +9,26 @@ QExtGroupBox { ...@@ -9,15 +9,26 @@ QExtGroupBox {
property var backendColor property var backendColor
property var oldMaximumHeight; property var oldMaximumHeight;
property var startupCollapse: selectionChanged;
property var firstTime: true;
onFinishedChanged: { onFinishedChanged: {
oldMaximumHeight = maximumHeight; oldMaximumHeight = maximumHeight;
visible = false; //visible = false;
visible = true; //visible = true;
if (finished) //if (finished)
collapsed = true; //collapsed = true;
} }
onStartupCollapseChanged: {
oldMaximumHeight = maximumHeight;
if (!collapsed && firstTime) {
collapsed = true;
colorButton.checked = false;
firstTime = false;
}
}
QWidget { QWidget {
id: colorButtonWidget id: colorButtonWidget
...@@ -36,6 +47,7 @@ QExtGroupBox { ...@@ -36,6 +47,7 @@ QExtGroupBox {
} }
ColorButton { ColorButton {
id: colorButton
color: colorGroupBox.backendColor.value; color: colorGroupBox.backendColor.value;
checkable: true; checkable: true;
checked: false; checked: false;
...@@ -43,7 +55,7 @@ QExtGroupBox { ...@@ -43,7 +55,7 @@ QExtGroupBox {
minimumWidth: 18; minimumWidth: 18;
onClicked: { onClicked: {
if (checked) { if (checked) {
colorGroupBox.collapsed = false; colorGroupBox.collapsed = false;
colorButtonWidget.visible = true; colorButtonWidget.visible = true;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment