Skip to content
Permalink
Browse files

Color a few pixels slightly differently

  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent bb6fc32 commit 003fe1830cdb7ee45a9b47586871da47439c6ca1
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/gui/qgsattributeform.cpp
  2. +2 −2 tests/src/gui/testqgsattributeform.cpp
@@ -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
{
@@ -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() );
@@ -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;

0 comments on commit 003fe18

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