18 #ifndef QGSLOCATORWIDGET_H 19 #define QGSLOCATORWIDGET_H 26 #include <QFocusEvent> 27 #include <QHeaderView> 33 class QgsLocatorResultsView;
73 void search(
const QString &
string );
79 void invalidateResults();
86 void configTriggered();
90 bool eventFilter( QObject *obj, QEvent *event )
override;
94 void scheduleDelayedPopup();
97 void triggerSearchAndShowList();
98 void searchFinished();
100 void configMenuAboutToShow();
109 QgsLocatorResultsView *mResultsView =
nullptr;
111 QMenu *mMenu =
nullptr;
113 QString mNextRequestedString;
114 bool mHasQueuedRequest =
false;
115 bool mHasSelectedResult =
false;
119 void updateResults(
const QString &text );
120 void acceptCurrentEntry();
135 QgsLocatorFilterFilter(
QgsLocatorWidget *widget, QObject *parent =
nullptr );
137 QgsLocatorFilterFilter *clone()
const override SIP_FACTORY;
138 QgsLocatorFilter::Flags flags()
const override;
140 QString name()
const override {
return QStringLiteral(
"filters" );}
141 QString displayName()
const override {
return QString(); }
157 class QgsLocatorResultsView :
public QTreeView
166 QgsLocatorResultsView( QWidget *parent =
nullptr );
171 void recalculateSize();
176 void selectNextResult();
181 void selectPreviousResult();
190 #endif // QGSLOCATORWIDGET_H
A sort proxy model for QgsLocatorModel, which automatically sorts results by precedence.
Priority
Filter priority. Controls the order of results in the locator.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for feedback objects to be used for cancelation 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...
An abstract list model for displaying the results of locator searches.