Skip to content
Permalink
Browse files

Grey out disabled symbol layers in tree

  • Loading branch information
nyalldawson committed Oct 18, 2016
1 parent a6148de commit 2835cad6ebc959a546b65ce2dc8588b2077eaa69
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/gui/symbology-ng/qgssymbolselectordialog.cpp
@@ -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 )

0 comments on commit 2835cad

Please sign in to comment.
You can’t perform that action at this time.