File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
python/gui/auto_generated Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1102,6 +1102,15 @@ deregisterLocatorFilter() to deregister their filters upon plugin unload to avoi
1102
1102
.. seealso:: :py:func:`registerLocatorFilter`
1103
1103
1104
1104
.. versionadded:: 3.0
1105
+ %End
1106
+
1107
+ virtual void invalidateLocatorResults() = 0;
1108
+ %Docstring
1109
+ Invalidate results from the locator filter.
1110
+
1111
+ This might be useful if the configuration of the filter changed without going through main application settings.
1112
+
1113
+ .. versionadded:: 3.2
1105
1114
%End
1106
1115
1107
1116
virtual bool askForDatumTransform( QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs ) = 0;
Original file line number Diff line number Diff line change @@ -774,6 +774,11 @@ void QgisAppInterface::deregisterLocatorFilter( QgsLocatorFilter *filter )
774
774
qgis->mLocatorWidget ->locator ()->deregisterFilter ( filter );
775
775
}
776
776
777
+ void QgisAppInterface::invalidateLocatorResults ()
778
+ {
779
+ qgis->mLocatorWidget ->invalidateResults ();
780
+ }
781
+
777
782
bool QgisAppInterface::askForDatumTransform ( QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs )
778
783
{
779
784
return qgis->askUserForDatumTransform ( sourceCrs, destinationCrs );
Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
544
544
545
545
void registerLocatorFilter ( QgsLocatorFilter *filter ) override ;
546
546
void deregisterLocatorFilter ( QgsLocatorFilter *filter ) override ;
547
+ void invalidateLocatorResults () override ;
547
548
548
549
bool askForDatumTransform ( QgsCoordinateReferenceSystem sourceCrs, QgsCoordinateReferenceSystem destinationCrs ) override ;
549
550
Original file line number Diff line number Diff line change @@ -902,6 +902,15 @@ class GUI_EXPORT QgisInterface : public QObject
902
902
*/
903
903
virtual void deregisterLocatorFilter ( QgsLocatorFilter *filter ) = 0;
904
904
905
+ /* *
906
+ * Invalidate results from the locator filter.
907
+ *
908
+ * This might be useful if the configuration of the filter changed without going through main application settings.
909
+ *
910
+ * \since QGIS 3.2
911
+ */
912
+ virtual void invalidateLocatorResults () = 0;
913
+
905
914
/* *
906
915
* Checks available datum transforms and ask user if several are available and none
907
916
* is chosen. Dialog is shown only if global option is set accordingly.
You can’t perform that action at this time.
0 commit comments