Gui: fix property view linked property highlight

This commit is contained in:
Zheng, Lei
2019-12-23 10:54:02 +08:00
committed by Chris Hennes
parent bd201c82ce
commit 1f604ec632

View File

@@ -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)