Wraps a Esri::ArcGISRuntime::SuggestResult result for display. More...
Header | #include <Search |
Inherits | Q |
Properties
|
|
Public Functions
Search | |
virtual | ~ |
Q | display |
Q | display |
bool | is |
Q | marker |
Esri | owning |
void | set |
void | set |
void | set |
const Esri | suggest |
Signals
void | display |
void | marker |
void | owning |
void | suggest |
Detailed Description
Property Documentation
collection : const bool
Access functions:
bool | is |
Notifier signal:
void | suggest |
displaySubtitle : QString
Access functions:
Q | display |
void | set |
Notifier signal:
void | display |
displayTitle : const QString
Access functions:
Q | display |
Notifier signal:
void | suggest |
markerImageUrl : const QUrl
Access functions:
Q | marker |
Notifier signal:
void | marker |
owningSource : SearchSourceInterface *
Access functions:
Esri | owning |
void | set |
Notifier signal:
void | owning |
Member Function Documentation
SearchSuggestion::SearchSuggestion (QObject *parent = nullptr)
Constructs a new SearchSuggestion object with a given parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[signal]
void SearchSuggestion::displaySubtitleChanged ()
Signal emitted when the displaySubtitle changes.
Note: Notifier signal for property displaySubtitle.
[signal]
void SearchSuggestion::markerImageUrlChanged ()
Signal emitted when the markerImageUrlChanged changes.
Note: Notifier signal for property markerImageUrl.
[signal]
void SearchSuggestion::owningSourceChanged ()
Signal emitted when the owningSource changes.
Note: Notifier signal for property owningSource.
[signal]
void SearchSuggestion::suggestResultChanged ()
Signal emitted when the suggestResult changes.
Note: Notifier signal for property collection. Notifier signal for property displayTitle.
[override virtual]
SearchSuggestion::~SearchSuggestion ()
Destructor.
QString SearchSuggestion::displaySubtitle () const
Returns the optional subtitle that should be shown whenever a suggestion is displayed.
Note: Getter function for property displaySubtitle.
See also setDisplaySubtitle().
QString SearchSuggestion::displayTitle () const
Returns the title that should be shown whenever a suggestion is displayed.
Note: Getter function for property displayTitle.
bool SearchSuggestion::isCollection () const
Returns true
if the search from this suggestion should be treated like a collection search, false
if the search would return a single result.
This property should be used to display a different icon in the UI depending on if this is a category search (like 'Coffee', 'Pizza', or 'Starbucks') and false
if it is a search for a specific result (e.g. '380 New York St. Redlands CA').
Note: Getter function for property collection.
QUrl SearchSuggestion::markerImageUrl () const
Returns the marker that would be shown in the UI.
Note: Getter function for property markerImageUrl.
Esri::ArcGISRuntime::Toolkit::SearchSourceInterface *SearchSuggestion::owningSource ()
Returns pointer to the search source that created this result.
Note: Getter function for property owningSource.
See also setOwningSource().
void SearchSuggestion::setDisplaySubtitle (QString displaySubtitle )
Sets the optional subtitle that should be shown whenever a suggestion is displayed to displaySubtitle.
Note: Setter function for property displaySubtitle.
See also displaySubtitle().
void SearchSuggestion::setOwningSource (Esri::ArcGISRuntime::Toolkit::SearchSourceInterface *owningSource )
Sets the pointer to the search source that created this result to owningSource.
Note: Setter function for property owningSource.
See also owningSource().
void SearchSuggestion::setSuggestResult (Esri::ArcGISRuntime::SuggestResult suggestResult )
Sets the underling Esri::ArcGISRuntime::SuggestResult to suggestResult.
This will also update the isCollection and displayTitle properties.
See also suggestResult().
const Esri::ArcGISRuntime::SuggestResult &SearchSuggestion::suggestResult () const
Returns the underling Esri::ArcGISRuntime::SuggestResult.
See also setSuggestResult().