Skip to content
Permalink
Browse files

Avoid using extended unicode in source files

Hopefully fixes Windows issues with those
  • Loading branch information
m-kuhn committed Nov 4, 2017
1 parent c936e27 commit 670dd0e57a9e86493d7b9592a033916f61839389
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsattributeformeditorwidget.cpp
@@ -143,17 +143,17 @@ void QgsAttributeFormEditorWidget::setConstraintStatus( const QString &constrain
switch ( result )
{
case QgsEditorWidgetWrapper::ConstraintResultFailHard:
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FF9800\"></font>" ) );
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FF9800\">\u2718</font>" ) );
mConstraintResultLabel->setToolTip( description.isEmpty() ? QStringLiteral( "<b>%1</b>: %2" ).arg( constraint, err ) : description );
break;

case QgsEditorWidgetWrapper::ConstraintResultFailSoft:
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FFC107\"></font>" ) );
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FFC107\">\u2718</font>" ) );
mConstraintResultLabel->setToolTip( description.isEmpty() ? QStringLiteral( "<b>%1</b>: %2" ).arg( constraint, err ) : description );
break;

case QgsEditorWidgetWrapper::ConstraintResultPass:
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#259b24\"></font>" ) );
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#259b24\">\u2714</font>" ) );
mConstraintResultLabel->setToolTip( QString() );
break;
}

0 comments on commit 670dd0e

Please sign in to comment.
You can’t perform that action at this time.