From 1f604ec6325089032aedbdd195f5bfe7aaf74e90 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 23 Dec 2019 10:54:02 +0800 Subject: [PATCH] Gui: fix property view linked property highlight --- src/Gui/propertyeditor/PropertyItem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 2f029e1609..20bf8e573c 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -552,7 +552,10 @@ QVariant PropertyItem::data(int column, int role) const { // property name if (column == 0) { - if (role == Qt::BackgroundRole || role == Qt::ForegroundRole) { + if (role == Qt::TextColorRole && linked) + return QVariant::fromValue(QColor(0x20,0xaa,0x20)); + + if (role == Qt::BackgroundRole || role == Qt::TextColorRole) { if(PropertyView::showAll() && propertyItems.size() == 1 && propertyItems.front()->testStatus(App::Property::PropDynamic)