Gui: fix missing expression highlight in property editor

This commit is contained in:
Zheng, Lei
2019-09-30 11:47:42 +08:00
committed by wmayer
parent 0e6ad2056b
commit 1ff5c2f720

View File

@@ -546,9 +546,12 @@ QVariant PropertyItem::data(int column, int role) const
else if (role == Qt::DisplayRole) {
QVariant val = parent->property(qPrintable(objectName()));
return toString(val);
}
else
}
else if( role == Qt::TextColorRole) {
if(hasExpression())
return QVariant::fromValue(QApplication::palette().color(QPalette::Link));
return QVariant();
} else
return QVariant();
}
if (role == Qt::EditRole)