Skip to content

Commit

Permalink
Color a few pixels slightly differently
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent bb6fc32 commit 003fe18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint,
if ( !ok )
{
// not good
buddy->setText( QStringLiteral( "%1<font color=\"red\"></font>" ).arg( text ) );
buddy->setText( QStringLiteral( "%1<font color=\"red\"></font>" ).arg( text ) );
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions tests/src/gui/testqgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void TestQgsAttributeForm::testFieldConstraint()

// testing stuff
QString validLabel = QStringLiteral( "col0<font color=\"green\">✔</font>" );
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );

// set constraint
layer->setConstraintExpression( 0, QString() );
Expand Down Expand Up @@ -145,7 +145,7 @@ void TestQgsAttributeForm::testFieldMultiConstraints()
// testing stuff
QSignalSpy spy( &form, SIGNAL( attributeChanged( QString, QVariant ) ) );
QString val = QStringLiteral( "<font color=\"green\">✔</font>" );
QString inv = QStringLiteral( "<font color=\"red\"></font>" );
QString inv = QStringLiteral( "<font color=\"red\"></font>" );

// get wrappers for each widget
QgsEditorWidgetWrapper *ww0, *ww1, *ww2, *ww3;
Expand Down

0 comments on commit 003fe18

Please sign in to comment.