Skip to content

Commit

Permalink
Attribute table: Mark current edited in red so user is aware of autoc…
Browse files Browse the repository at this point in the history
…ommitted changes.

Quick fix.
The better approach would be to only change the color after changes have been made by the user
  • Loading branch information
m-kuhn authored and jef-n committed Mar 27, 2013
1 parent c6bd8a1 commit d6d5da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
Expand Up @@ -77,7 +77,7 @@ void QgsFeatureListViewDelegate::paint(QPainter *painter, const QStyleOptionView
textOption.palette.setColor( QPalette::Text, Qt::darkGreen );
textOption.palette.setColor( QPalette::HighlightedText, Qt::darkGreen );
}
else if ( featInfo.isEdited )
else if ( featInfo.isEdited || checked )
{
textOption.font.setStyle( QFont::StyleItalic );
textOption.palette.setColor( QPalette::Text, Qt::red );
Expand Down

0 comments on commit d6d5da4

Please sign in to comment.