47 static const int NoGroup = -1;
48 static const int UnorderedGroup = 0;
67 ResultFilterGroupTitle,
68 ResultFilterGroupScore,
93 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
94 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
95 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
96 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
97 QHash<int, QByteArray> roleNames()
const override;
116 enum class EntryType :
int
125 EntryType type = EntryType::Result;
129 QString groupTitle = QString();
130 double groupScore = UnorderedGroup;
133 QList<Entry> mResults;
134 QSet<QString> mFoundResultsFromFilterNames;
136 QMap<QgsLocatorFilter *, QList<std::pair<QString, double>>> mFoundResultsFilterGroups;
137 bool mDeferredClear =
false;
138 QTimer mDeferredClearTimer;
Encapsulates the properties relating to the context of a locator search.