Commit 164be3a0 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixing GradientLine

parent 442ef1d8
......@@ -447,6 +447,7 @@ void GradientLine::setItemNode(const QVariant &itemNode)
if (!itemNode.value<ModelNode>().isValid())
return;
m_itemNode = itemNode.value<ModelNode>();
m_useGradient = false;
setupGradient();
emit itemNodeChanged();
}
......@@ -454,7 +455,7 @@ void GradientLine::setItemNode(const QVariant &itemNode)
void GradientLine::setGradient(const QLinearGradient &gradient)
{
m_gradient = gradient;
m_useGradient = true;
m_useGradient = false;
setupGradient();
emit gradientChanged();
......
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