Skip to content
Browse files

Fix edited and new features no longer correctly show their corresponding

color shading in the feature list view
  • Loading branch information
nyalldawson committed Oct 14, 2020
1 parent bc0df6d commit a195b056624c2fabe231be7c0e96c3d63e052e5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
@@ -89,7 +89,7 @@ void QgsFeatureListViewDelegate::paint( QPainter *painter, const QStyleOptionVie
sDeselectedIcon = QgsApplication::getThemePixmap( QStringLiteral( "/mIconDeselected.svg" ) );

QString text = index.model()->data( index, Qt::EditRole ).toString();
QgsFeatureListModel::FeatureInfo featInfo = index.model()->data( index, Qt::UserRole ).value<QgsFeatureListModel::FeatureInfo>();
const QgsFeatureListModel::FeatureInfo featInfo = index.model()->data( index, QgsFeatureListModel::Role::FeatureInfoRole ).value<QgsFeatureListModel::FeatureInfo>();

// Icon layout options
QStyleOptionViewItem iconOption;

0 comments on commit a195b05

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