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 merge requests found
......@@ -9,15 +9,26 @@ QExtGroupBox {
property var backendColor
property var oldMaximumHeight;
property var startupCollapse: selectionChanged;
property var firstTime: true;
onFinishedChanged: {
oldMaximumHeight = maximumHeight;
visible = false;
visible = true;
if (finished)
collapsed = true;
//visible = false;
//visible = true;
//if (finished)
//collapsed = true;
}
onStartupCollapseChanged: {
oldMaximumHeight = maximumHeight;
if (!collapsed && firstTime) {
collapsed = true;
colorButton.checked = false;
firstTime = false;
}
}
QWidget {
id: colorButtonWidget
......@@ -36,6 +47,7 @@ QExtGroupBox {
}
ColorButton {
id: colorButton
color: colorGroupBox.backendColor.value;
checkable: true;
checked: false;
......@@ -43,7 +55,7 @@ QExtGroupBox {
minimumWidth: 18;
onClicked: {
if (checked) {
if (checked) {
colorGroupBox.collapsed = false;
colorButtonWidget.visible = true;
} 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