Skip to content

Commit

Permalink
Fix some broken utf strings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 27, 2017
1 parent 1012f25 commit cb0a1f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cb0a1f8

Please sign in to comment.