Skip to content

Commit 670dd0e

Browse files
committed
Avoid using extended unicode in source files
Hopefully fixes Windows issues with those
1 parent c936e27 commit 670dd0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gui/qgsattributeformeditorwidget.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ void QgsAttributeFormEditorWidget::setConstraintStatus( const QString &constrain
143143
switch ( result )
144144
{
145145
case QgsEditorWidgetWrapper::ConstraintResultFailHard:
146-
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FF9800\"></font>" ) );
146+
mConstraintResultLabel->setText( QStringLiteral( "<font color=\"#FF9800\">\u2718</font>" ) );
147147
mConstraintResultLabel->setToolTip( description.isEmpty() ? QStringLiteral( "<b>%1</b>: %2" ).arg( constraint, err ) : description );
148148
break;
149149

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

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

0 commit comments

Comments
 (0)