Commit c6208641 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyPane: check for bindings in Gradients

parent 18f95431
......@@ -74,11 +74,18 @@ void ContextPaneWidgetRectangle::setProperties(QmlJS::PropertyReader *propertyRe
if (m_none)
ui->colorNone->setChecked(true);
ui->gradientLabel->setEnabled(true);
ui->gradientLine->setEnabled(true);
if (m_hasGradient) {
bool isBound;
ui->colorGradient->setChecked(true);
//ui->gradientLine->setEnabled(true);
//ui->gradientLabel->setEnabled(true);
ui->gradientLine->setGradient(propertyReader->parseGradient("gradient"));
ui->gradientLine->setGradient(propertyReader->parseGradient("gradient", &isBound));
if (isBound) {
ui->gradientLabel->setEnabled(false);
ui->gradientLine->setEnabled(false);
ui->colorColorButton->setColor("invalidColor");
}
} else {
//ui->gradientLine->setEnabled(false);
//ui->gradientLabel->setEnabled(false);
......
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