Skip to content
Permalink
Browse files

add flashing feature to locator filters (#38694)

  • Loading branch information
3nids committed Sep 11, 2020
1 parent 9ef61c5 commit 5941261c4ee8e75a0bc83cb50f92f8777c4548ba
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -386,6 +386,7 @@ void QgsActiveLayerFeaturesLocatorFilter::triggerResult( const QgsLocatorResult
return;

QgisApp::instance()->mapCanvas()->zoomToFeatureIds( layer, QgsFeatureIds() << id );
QgisApp::instance()->mapCanvas()->flashFeatureIds( layer, QgsFeatureIds() << id );
}

void QgsActiveLayerFeaturesLocatorFilter::openConfigWidget( QWidget *parent )
@@ -592,6 +593,7 @@ void QgsAllLayersFeaturesLocatorFilter::triggerResultFromAction( const QgsLocato
else
{
QgisApp::instance()->mapCanvas()->zoomToFeatureIds( layer, QgsFeatureIds() << fid );
QgisApp::instance()->mapCanvas()->flashFeatureIds( layer, QgsFeatureIds() << fid );
}
}

0 comments on commit 5941261

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