Skip to content

Commit

Permalink
fix build with QScintilla <2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 15, 2018
1 parent 6fb5777 commit dc1ab4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -123,7 +123,11 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
txtExpressionString->indicatorDefine( QgsCodeEditor::SquiggleIndicator, QgsExpression::ParserError::FunctionWrongArgs );
txtExpressionString->indicatorDefine( QgsCodeEditor::SquiggleIndicator, QgsExpression::ParserError::FunctionInvalidParams );
txtExpressionString->indicatorDefine( QgsCodeEditor::SquiggleIndicator, QgsExpression::ParserError::FunctionNamedArgsError );
#if defined(QSCINTILLA_VERSION) && QSCINTILLA_VERSION >= 0x20a00
txtExpressionString->indicatorDefine( QgsCodeEditor::TriangleIndicator, QgsExpression::ParserError::Unknown );
#else
txtExpressionString->indicatorDefine( QgsCodeEditor::SquiggleIndicator, QgsExpression::ParserError::Unknown );
#endif

// Set all the error markers as red. -1 is all.
txtExpressionString->setIndicatorForegroundColor( QColor( Qt::red ), -1 );
Expand Down

0 comments on commit dc1ab4c

Please sign in to comment.