Skip to content
Permalink
Browse files
Fix some broken utf strings on Windows
  • Loading branch information
nyalldawson committed Apr 27, 2017
1 parent 1012f25 commit cb0a1f840843adc847a6ea24418142233cbdc7e2
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsattributeform.cpp
@@ -911,15 +911,15 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString &constraint,
switch ( result )
{
case QgsEditorWidgetWrapper::ConstraintResultFailHard:
buddy->setText( QStringLiteral( "%1<font color=\"red\">✘</font>" ).arg( text ) );
buddy->setText( trUtf8( "%1<font color=\"red\">✘</font>" ).arg( text ) );
break;

case QgsEditorWidgetWrapper::ConstraintResultFailSoft:
buddy->setText( QStringLiteral( "%1<font color=\"orange\">✘</font>" ).arg( text ) );
buddy->setText( trUtf8( "%1<font color=\"orange\">✘</font>" ).arg( text ) );
break;

case QgsEditorWidgetWrapper::ConstraintResultPass:
buddy->setText( QStringLiteral( "%1<font color=\"green\">✔</font>" ).arg( text ) );
buddy->setText( trUtf8( "%1<font color=\"green\">✔</font>" ).arg( text ) );
break;
}
}

0 comments on commit cb0a1f8

Please sign in to comment.