Skip to content

Commit

Permalink
Fix qt warnings about invalid stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 18, 2019
1 parent 5214ea4 commit 56024ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsfieldexpressionwidget.cpp
Expand Up @@ -339,7 +339,7 @@ void QgsFieldExpressionWidget::updateLineEditStyle( const QString &expression )
QString stylesheet;
if ( !isEnabled() )
{
stylesheet = QStringLiteral( "QLineEdit { color: %1; } Qt::gray );" ).arg( QColor( Qt::gray ).name() );
stylesheet = QStringLiteral( "QLineEdit { color: %1; }" ).arg( QColor( Qt::gray ).name() );
}
else
{
Expand All @@ -359,7 +359,7 @@ void QgsFieldExpressionWidget::updateLineEditStyle( const QString &expression )

if ( isExpression && !isValid )
{
stylesheet = QStringLiteral( "QLineEdit { color: %1; } Qt::gray );" ).arg( QColor( Qt::red ).name() );
stylesheet = QStringLiteral( "QLineEdit { color: %1; }" ).arg( QColor( Qt::red ).name() );
}
}
mCombo->lineEdit()->setStyleSheet( stylesheet );
Expand Down

0 comments on commit 56024ba

Please sign in to comment.