From be951cc0d83bd3a2f12697f4d7716b12ea57a1f8 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 30 Sep 2019 11:47:42 +0800 Subject: [PATCH] Gui: fix missing expression highlight in property editor --- src/Gui/propertyeditor/PropertyItem.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 3c5faf989aa4..7a44222ec933 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -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)