| QGIS API Documentation
    3.18.1-Zürich (202f1bf7e5)
    | 
The QgsLocatorModelBridge class provides the core functionality to be used in a locator widget. More...
#include <qgslocatormodelbridge.h>

| Public Slots | |
| void | invalidateResults () | 
| This will invalidate current search results.  More... | |
| void | updateCanvasCrs (const QgsCoordinateReferenceSystem &crs) | 
| Update the canvas CRS used to create search context.  More... | |
| void | updateCanvasExtent (const QgsRectangle &extent) | 
| Update the canvas extent used to create search context.  More... | |
| Signals | |
| void | isRunningChanged () | 
| Emitted when the running status changes.  More... | |
| void | resultAdded () | 
| Emitted when a result is added.  More... | |
| void | resultsCleared () | 
| Emitted when the results are cleared.  More... | |
| Public Member Functions | |
| QgsLocatorModelBridge (QObject *parent=nullptr) | |
| Constructor of QgsLocatorModelBridge.  More... | |
| virtual | ~QgsLocatorModelBridge ()=default | 
| bool | hasQueueRequested () const | 
| Returns trueif some text to be search is pending in the queue.  More... | |
| bool | isRunning () const | 
| Returns trueif the a search is currently running.  More... | |
| QgsLocator * | locator () const | 
| Returns the locator.  More... | |
| Q_INVOKABLE void | performSearch (const QString &text) | 
| Perform a search.  More... | |
| Q_INVOKABLE QgsLocatorProxyModel * | proxyModel () const | 
| Returns the proxy model.  More... | |
| void | setTransformContext (const QgsCoordinateTransformContext &context) | 
| Sets the coordinate transform context, which should be used whenever the locator constructs a coordinate transform.  More... | |
| QgsCoordinateTransformContext | transformContext () const | 
| Returns the coordinate transform context, which should be used whenever the locator constructs a coordinate transform.  More... | |
| void | triggerResult (const QModelIndex &index, const int actionId=-1) | 
| Triggers the result at given index and with optional actionId if an additional action was triggered.  More... | |
| Properties | |
| bool | isRunning | 
The QgsLocatorModelBridge class provides the core functionality to be used in a locator widget.
Definition at line 43 of file qgslocatormodelbridge.h.
| 
 | explicit | 
Constructor of QgsLocatorModelBridge.
Definition at line 23 of file qgslocatormodelbridge.cpp.
| 
 | virtualdefault | 
| bool QgsLocatorModelBridge::hasQueueRequested | ( | ) | const | 
Returns true if some text to be search is pending in the queue. 
Definition at line 134 of file qgslocatormodelbridge.cpp.
| 
 | slot | 
This will invalidate current search results.
Definition at line 62 of file qgslocatormodelbridge.cpp.
| bool QgsLocatorModelBridge::isRunning | ( | ) | const | 
Returns true if the a search is currently running. 
Definition at line 35 of file qgslocatormodelbridge.cpp.
| 
 | signal | 
Emitted when the running status changes.
| QgsLocator * QgsLocatorModelBridge::locator | ( | ) | const | 
Returns the locator.
Definition at line 124 of file qgslocatormodelbridge.cpp.
| void QgsLocatorModelBridge::performSearch | ( | const QString & | text | ) | 
Perform a search.
Definition at line 102 of file qgslocatormodelbridge.cpp.
| QgsLocatorProxyModel * QgsLocatorModelBridge::proxyModel | ( | ) | const | 
Returns the proxy model.
Definition at line 129 of file qgslocatormodelbridge.cpp.
| 
 | signal | 
Emitted when a result is added.
| 
 | signal | 
Emitted when the results are cleared.
| 
 | inline | 
Sets the coordinate transform context, which should be used whenever the locator constructs a coordinate transform.
Definition at line 86 of file qgslocatormodelbridge.h.
| 
 | inline | 
Returns the coordinate transform context, which should be used whenever the locator constructs a coordinate transform.
Definition at line 77 of file qgslocatormodelbridge.h.
| void QgsLocatorModelBridge::triggerResult | ( | const QModelIndex & | index, | 
| const int | actionId = -1 | ||
| ) | 
Triggers the result at given index and with optional actionId if an additional action was triggered.
Definition at line 40 of file qgslocatormodelbridge.cpp.
| 
 | slot | 
Update the canvas CRS used to create search context.
Definition at line 73 of file qgslocatormodelbridge.cpp.
| 
 | slot | 
Update the canvas extent used to create search context.
Definition at line 68 of file qgslocatormodelbridge.cpp.
| 
 | read | 
Definition at line 1 of file qgslocatormodelbridge.h.