Skip to content

Commit

Permalink
Relation reference widget make current entry bold
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 26, 2017
1 parent d676035 commit fd772dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/qgsfeaturefiltermodel.cpp
Expand Up @@ -145,12 +145,15 @@ QVariant QgsFeatureFilterModel::data( const QModelIndex &index, int role ) const
break;

case Qt::FontRole:
QFont font = QFont();
if ( index.row() == mExtraIdentifierValueIndex )
font.setBold( true );

if ( mEntries.value( index.row() ).identifierValue.isNull() )
{
QFont font = QFont();
font.setItalic( true );
return font;
}
return font;
break;
}

Expand Down

0 comments on commit fd772dc

Please sign in to comment.