mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Grey out disabled symbol layers in tree
This commit is contained in:
parent
a6148deb30
commit
2835cad6eb
@ -191,6 +191,16 @@ class SymbolLayerItem : public QStandardItem
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ( role == Qt::ForegroundRole && mIsLayer )
|
||||
{
|
||||
QBrush brush( Qt::black, Qt::SolidPattern );
|
||||
if ( !mLayer->enabled() )
|
||||
{
|
||||
brush.setColor( Qt::lightGray );
|
||||
}
|
||||
return brush;
|
||||
}
|
||||
|
||||
// if ( role == Qt::SizeHintRole )
|
||||
// return QVariant( QSize( 32, 32 ) );
|
||||
if ( role == Qt::CheckStateRole )
|
||||
|
Loading…
x
Reference in New Issue
Block a user