QGIS API Documentation
3.0.2-Girona (307d082)
|
Encapsulates properties of an individual matching result found by a QgsLocatorFilter. More...
#include <qgslocatorfilter.h>
Public Member Functions | |
QgsLocatorResult ()=default | |
Constructor for QgsLocatorResult. More... | |
QgsLocatorResult (QgsLocatorFilter *filter, const QString &displayString, const QVariant &userData=QVariant()) | |
Constructor for QgsLocatorResult. More... | |
Public Attributes | |
QString | description |
Descriptive text for result. More... | |
QString | displayString |
String displayed for result. More... | |
QgsLocatorFilter * | filter = nullptr |
Filter from which the result was obtained. More... | |
QIcon | icon |
Icon for result. More... | |
double | score = 0.5 |
Match score, from 0 - 1, where 1 represents a perfect match. More... | |
QVariant | userData |
Custom reference or other data set by the filter. More... | |
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.
QString QgsLocatorResult::description |
Descriptive text for result.
Definition at line 68 of file qgslocatorfilter.h.
QString QgsLocatorResult::displayString |
String displayed for result.
Definition at line 63 of file qgslocatorfilter.h.
QgsLocatorFilter* QgsLocatorResult::filter = nullptr |
Filter from which the result was obtained.
This is automatically set.
Definition at line 58 of file qgslocatorfilter.h.
QIcon QgsLocatorResult::icon |
Icon for result.
Definition at line 78 of file qgslocatorfilter.h.
double QgsLocatorResult::score = 0.5 |
Match score, from 0 - 1, where 1 represents a perfect match.
Definition at line 83 of file qgslocatorfilter.h.
QVariant QgsLocatorResult::userData |
Custom reference or other data set by the filter.
Definition at line 73 of file qgslocatorfilter.h.