Skip to content

Commit

Permalink
[needs-docs] Don't show embedded layers in italics
Browse files Browse the repository at this point in the history
Since the new indicator shows this in a better, less
visually noisy, way.
  • Loading branch information
nyalldawson committed Jun 11, 2018
1 parent f633bbc commit 0930718
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/layertree/qgslayertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
else if ( role == Qt::FontRole )
{
QFont f( QgsLayerTree::isLayer( node ) ? mFontLayer : ( QgsLayerTree::isGroup( node ) ? mFontGroup : QFont() ) );
if ( node->customProperty( QStringLiteral( "embedded" ) ).toInt() )
f.setItalic( true );
if ( index == mCurrentIndex )
f.setUnderline( true );
return f;
Expand Down

0 comments on commit 0930718

Please sign in to comment.