Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #43059 from lbartoletti/overlap_tooltip
[UI] Adds a tooltip on avoid overlap
  • Loading branch information
pblottiere committed May 4, 2021
2 parents a9c678a + dea121f commit 46287b8
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 vertices 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 46287b8

Please sign in to comment.