Skip to content
Permalink
Browse files

fix build with QScintilla <2.10

  • Loading branch information
jef-n committed Apr 15, 2018
1 parent 6fb5777 commit dc1ab4c9e728322d1fd33ae70c587e0be157a354
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -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 );

0 comments on commit dc1ab4c

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