Skip to content

Commit

Permalink
Highlight 'to_dms' and 'to_dm' functions in map annotation expression…
Browse files Browse the repository at this point in the history
… builder
  • Loading branch information
nyalldawson committed Sep 21, 2018
1 parent 0e64d92 commit 2d3b8c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/layout/qgslayoutmapgridwidget.cpp
Expand Up @@ -1004,6 +1004,7 @@ void QgsLayoutMapGridWidget::mAnnotationFormatButton_clicked()
}

QgsExpressionContext expressionContext = mMapGrid->createExpressionContext();
expressionContext.setHighlightedFunctions( QStringList() << QStringLiteral( "to_dms" ) << QStringLiteral( "to_dm" ) );

QgsExpressionBuilderDialog exprDlg( nullptr, mMapGrid->annotationExpression(), this, QStringLiteral( "generic" ), expressionContext );
exprDlg.setWindowTitle( tr( "Expression Based Annotation" ) );
Expand Down

0 comments on commit 2d3b8c8

Please sign in to comment.