Skip to content

Commit

Permalink
Gui: fix missing expression highlight in property editor
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Oct 7, 2019
1 parent da19c84 commit be951cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Gui/propertyeditor/PropertyItem.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit be951cc

Please sign in to comment.