Skip to content

Commit 2d3b8c8

Browse files
committedSep 21, 2018
Highlight 'to_dms' and 'to_dm' functions in map annotation expression builder
1 parent 0e64d92 commit 2d3b8c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/app/layout/qgslayoutmapgridwidget.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ void QgsLayoutMapGridWidget::mAnnotationFormatButton_clicked()
10041004
}
10051005

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.