18 #ifndef QGSLOCATORWIDGET_H 19 #define QGSLOCATORWIDGET_H 26 #include <QFocusEvent> 27 #include <QHeaderView> 32 class QgsLocatorResultsView;
72 void search(
const QString &
string );
78 void invalidateResults();
85 void configTriggered();
88 bool eventFilter( QObject *obj, QEvent *event )
override;
93 void triggerSearchAndShowList();
94 void configMenuAboutToShow();
95 void scheduleDelayedPopup();
97 void showContextMenu(
const QPoint &point );
103 QgsLocatorResultsView *mResultsView =
nullptr;
105 QList<QMetaObject::Connection> mCanvasConnections;
106 QMenu *mMenu =
nullptr;
110 bool mHasSelectedResult =
false;
112 void acceptCurrentEntry();
125 QgsLocatorFilterFilter(
QgsLocatorWidget *widget, QObject *parent =
nullptr );
127 QgsLocatorFilterFilter *clone()
const override SIP_FACTORY;
128 QgsLocatorFilter::Flags flags()
const override;
130 QString name()
const override {
return QStringLiteral(
"filters" );}
131 QString displayName()
const override {
return QString(); }
146 class GUI_EXPORT QgsLocatorResultsView :
public QTreeView
155 QgsLocatorResultsView( QWidget *parent =
nullptr );
160 void recalculateSize();
165 void selectNextResult();
170 void selectPreviousResult();
179 #endif // QGSLOCATORWIDGET_H
Priority
Filter priority. Controls the order of results in the locator.
The QgsLocatorModelBridge class provides the core functionality to be used in a locator widget...
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for feedback objects to be used for cancellation of something running in a worker thread...
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
Encapsulates the properties relating to the context of a locator search.
Encapsulates properties of an individual matching result found by a QgsLocatorFilter.
Abstract base class for filters which collect locator results.
Handles the management of QgsLocatorFilter objects and async collection of search results from them...