Commit af523e48 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.PropertyEditor: Setting the color if gradient is removed/added

We have to properly setup the color of the color editor, if we add or
remove a gradient.

Change-Id: I3aac64e9957036343ff304f1b163c4c480b5e976
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 5103ceea
......@@ -95,13 +95,17 @@ Column {
if (!supportGradient)
return
if (gradientLine.hasGradient)
if (gradientLine.hasGradient) {
buttonRow.initalChecked = 1
else
colorEditor.color = gradientLine.currentColor
} else {
buttonRow.initalChecked = 0
colorEditor.color = colorEditor.value
}
buttonRow.checkedIndex = buttonRow.initalChecked
}
Component.onCompleted: {
colorEditor.color = gradientLine.currentColor
isCompleted= true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment