Skip to content
Permalink
Browse files

NULL value is gray and italic

  • Loading branch information
m-kuhn committed Oct 26, 2017
1 parent 95ddaa8 commit e63da8809091937d9acb867ab2883c016d6c40fe
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/core/qgsfeaturefiltermodel.cpp
@@ -136,6 +136,22 @@ QVariant QgsFeatureFilterModel::data( const QModelIndex &index, int role ) const

case IdentifierValueRole:
return mEntries.value( index.row() ).identifierValue;

case Qt::ForegroundRole:
if ( mEntries.value( index.row() ).identifierValue.isNull() )
{
return QBrush( QColor( Qt::gray ) );
}
break;

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

return QVariant();

0 comments on commit e63da88

Please sign in to comment.
You can’t perform that action at this time.