mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Color a few pixels slightly differently
This commit is contained in:
parent
bb6fc32eec
commit
003fe1830c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user