Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Relation reference widget make current entry bold
- Loading branch information
Showing
with
5 additions
and
2 deletions.
-
+5
−2
src/core/qgsfeaturefiltermodel.cpp
|
@@ -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; |
|
|
} |
|
|
|
|
|