Skip to content

Commit 003fe18

Browse files
committed
Color a few pixels slightly differently
1 parent bb6fc32 commit 003fe18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gui/qgsattributeform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint,
901901
if ( !ok )
902902
{
903903
// not good
904-
buddy->setText( QStringLiteral( "%1<font color=\"red\"></font>" ).arg( text ) );
904+
buddy->setText( QStringLiteral( "%1<font color=\"red\"></font>" ).arg( text ) );
905905
}
906906
else
907907
{

tests/src/gui/testqgsattributeform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void TestQgsAttributeForm::testFieldConstraint()
7979

8080
// testing stuff
8181
QString validLabel = QStringLiteral( "col0<font color=\"green\">✔</font>" );
82-
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );
82+
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );
8383

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

150150
// get wrappers for each widget
151151
QgsEditorWidgetWrapper *ww0, *ww1, *ww2, *ww3;

0 commit comments

Comments
 (0)