Skip to content

Commit

Permalink
Fix edited and new features no longer correctly show their corresponding
Browse files Browse the repository at this point in the history
color shading in the feature list view
  • Loading branch information
nyalldawson committed Oct 14, 2020
1 parent bc0df6d commit a195b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a195b05

Please sign in to comment.