Color a few pixels slightly differently

This commit is contained in:
Nyall Dawson 2016-11-01 16:29:40 +10:00
parent bb6fc32eec
commit 003fe1830c
2 changed files with 3 additions and 3 deletions

View File

@ -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
{

View File

@ -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;