Skip to content

Commit

Permalink
Grey out disabled symbol layers in tree
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 18, 2016
1 parent a6148de commit 2835cad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gui/symbology-ng/qgssymbolselectordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 2835cad

Please sign in to comment.