|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
Encapsulates properties of an individual matching result found by a QgsLocatorFilter. More...
#include <qgslocatorfilter.h>
Classes | |
| struct | ResultAction |
| The ResultAction stores basic information for additional actions to be used in a locator widget for the result. More... | |
Public Member Functions | |
| QgsLocatorResult ()=default | |
| Constructor for QgsLocatorResult. | |
| QgsLocatorResult (QgsLocatorFilter *filter, const QString &displayString, const QVariant &userData=QVariant()) | |
| Constructor for QgsLocatorResult. | |
| QVariant | getUserData () const |
Returns the userData. | |
| void | setUserData (QVariant userData) |
| Set userData for the locator result. | |
Public Attributes | |
| QList< QgsLocatorResult::ResultAction > | actions |
| Additional actions to be used in a locator widget for the given result. | |
| QString | description |
| Descriptive text for result. | |
| QString | displayString |
| String displayed for result. | |
| QgsLocatorFilter * | filter = nullptr |
| Filter from which the result was obtained. | |
| QString | group |
| Group the results by categories If left as empty string, this means that results are all shown without being grouped. | |
| QIcon | icon |
| Icon for result. | |
| double | score = 0.5 |
| Match score, from 0 - 1, where 1 represents a perfect match. | |
Encapsulates properties of an individual matching result found by a QgsLocatorFilter.
Definition at line 37 of file qgslocatorfilter.h.
|
default |
Constructor for QgsLocatorResult.
|
inline |
Constructor for QgsLocatorResult.
Definition at line 49 of file qgslocatorfilter.h.
| QVariant QgsLocatorResult::getUserData | ( | ) | const |
| void QgsLocatorResult::setUserData | ( | QVariant | userData | ) |
Set userData for the locator result.
Definition at line 109 of file qgslocatorfilter.cpp.
| QList<QgsLocatorResult::ResultAction> QgsLocatorResult::actions |
Additional actions to be used in a locator widget for the given result.
They could be displayed in a context menu.
Definition at line 137 of file qgslocatorfilter.h.
| QString QgsLocatorResult::description |
Descriptive text for result.
Definition at line 82 of file qgslocatorfilter.h.
| QString QgsLocatorResult::displayString |
String displayed for result.
Definition at line 77 of file qgslocatorfilter.h.
| QgsLocatorFilter* QgsLocatorResult::filter = nullptr |
Filter from which the result was obtained.
This is automatically set.
Definition at line 72 of file qgslocatorfilter.h.
| QString QgsLocatorResult::group |
Group the results by categories If left as empty string, this means that results are all shown without being grouped.
If a group is given, the results will be grouped by group under a header.
Definition at line 101 of file qgslocatorfilter.h.
| QIcon QgsLocatorResult::icon |
Icon for result.
Definition at line 87 of file qgslocatorfilter.h.
| double QgsLocatorResult::score = 0.5 |
Match score, from 0 - 1, where 1 represents a perfect match.
Definition at line 92 of file qgslocatorfilter.h.