Skip to content

Commit 2835cad

Browse files
committedOct 18, 2016
Grey out disabled symbol layers in tree
1 parent a6148de commit 2835cad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/gui/symbology-ng/qgssymbolselectordialog.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,16 @@ class SymbolLayerItem : public QStandardItem
191191
}
192192
}
193193
}
194+
else if ( role == Qt::ForegroundRole && mIsLayer )
195+
{
196+
QBrush brush( Qt::black, Qt::SolidPattern );
197+
if ( !mLayer->enabled() )
198+
{
199+
brush.setColor( Qt::lightGray );
200+
}
201+
return brush;
202+
}
203+
194204
// if ( role == Qt::SizeHintRole )
195205
// return QVariant( QSize( 32, 32 ) );
196206
if ( role == Qt::CheckStateRole )

0 commit comments

Comments
 (0)
Please sign in to comment.