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

QmlDesigner.propertyEditor: bug fix for color editing

Task-Nr: QTCREATORBUG-4069
parent 2d8f6f37
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,31 @@ GroupBox {
property bool hasBorder
property variant colorAlpha: colorGroupBox.alpha
property bool hasGradient: backendValues.gradient.isInModel
onHasGradientChanged: {
print("onGradientInModelChanged")
if (backendValues.gradient.isInModel) {
print("inmodel")
colorGroupBox.setGradientButtonChecked = true;
} else {
print("else")
if (colorGroupBox.alpha == 0)
colorGroupBox.setNoneButtonChecked = true;
else
colorGroupBox.setSolidButtonChecked = true;
}
}
onColorAlphaChanged: {
if (backendValues.gradient.isInModel)
return
if (colorGroupBox.alpha == 0)
colorGroupBox.setNoneButtonChecked = true;
else
colorGroupBox.setSolidButtonChecked = true;
}
onSelectionFlagChanged: {
isSetup = true;
......
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