Skip to content
Permalink
Browse files
Attribute table: Mark current edited in red so user is aware of autoc…
…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 d6d5da4b8561d8a50cd0d28d23b7ab44040ca001
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
@@ -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 );

0 comments on commit d6d5da4

Please sign in to comment.