Skip to content

Commit fd772dc

Browse files
committedOct 26, 2017
Relation reference widget make current entry bold
1 parent d676035 commit fd772dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/core/qgsfeaturefiltermodel.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,15 @@ QVariant QgsFeatureFilterModel::data( const QModelIndex &index, int role ) const
145145
break;
146146

147147
case Qt::FontRole:
148+
QFont font = QFont();
149+
if ( index.row() == mExtraIdentifierValueIndex )
150+
font.setBold( true );
151+
148152
if ( mEntries.value( index.row() ).identifierValue.isNull() )
149153
{
150-
QFont font = QFont();
151154
font.setItalic( true );
152-
return font;
153155
}
156+
return font;
154157
break;
155158
}
156159

0 commit comments

Comments
 (0)
Please sign in to comment.