Skip to content

Commit

Permalink
Adds a tooltip on avoid overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed May 3, 2021
1 parent f00f89e commit 38baf6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgssnappingwidget.cpp
Expand Up @@ -145,6 +145,7 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
QMenu *avoidIntersectionsModeMenu = new QMenu( tr( "Set Avoid Overlap Mode" ), this );
mAllowIntersectionsAction = new QAction( QIcon( QgsApplication::getThemeIcon( "/mActionAllowIntersections.svg" ) ), tr( "Allow Overlap" ), avoidIntersectionsModeMenu );
mAvoidIntersectionsCurrentLayerAction = new QAction( QIcon( QgsApplication::getThemeIcon( "/mActionAvoidIntersectionsCurrentLayer.svg" ) ), tr( "Avoid Overlap on Active Layer" ), avoidIntersectionsModeMenu );
mAvoidIntersectionsCurrentLayerAction->setToolTip( tr( "Avoid Overlap on Active Layer.\nBeware that this option will be applied on all vertexes of the edited geometries, even if outside the current view extent" ) );
mAvoidIntersectionsLayersAction = new QAction( QIcon( QgsApplication::getThemeIcon( "/mActionAvoidIntersectionsLayers.svg" ) ), tr( "Follow Advanced Configuration" ), avoidIntersectionsModeMenu );
avoidIntersectionsModeMenu->addAction( mAllowIntersectionsAction );
avoidIntersectionsModeMenu->addAction( mAvoidIntersectionsCurrentLayerAction );
Expand Down

0 comments on commit 38baf6b

Please sign in to comment.