18#ifndef QGSLOCATORMODEL_H
19#define QGSLOCATORMODEL_H
23#include <QAbstractListModel>
26#include <QSortFilterProxyModel>
47 static const int NoGroup = 9999;
90 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
91 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
92 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
93 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
94 QHash<int, QByteArray> roleNames()
const override;
116 QString groupTitle = QString();
117 int groupSorting = 0;
120 QList<Entry> mResults;
121 QSet<QString> mFoundResultsFromFilterNames;
122 QMap<QgsLocatorFilter *, QStringList> mFoundResultsFilterGroups;
123 bool mDeferredClear =
false;
124 QTimer mDeferredClearTimer;
171 void search(
const QString &
string );
182 void searchFinished();
188 QString mNextRequestedString;
189 bool mHasQueuedRequest =
false;
208 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const override;
A QgsLocatorModel which has is associated directly with a QgsLocator, and is automatically populated ...
Encapsulates the properties relating to the context of a locator search.
Abstract base class for filters which collect locator results.
An abstract list model for displaying the results of locator searches.
CustomRole
Custom model roles.
A sort proxy model for QgsLocatorModel, which automatically sorts results by precedence.
Encapsulates properties of an individual matching result found by a QgsLocatorFilter.
Handles the management of QgsLocatorFilter objects and async collection of search results from them.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)