Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPlaceProposedSearchResult Class Reference

\inmodule QtLocation More...

#include <qplaceproposedsearchresult.h>

+ Inheritance diagram for QPlaceProposedSearchResult:
+ Collaboration diagram for QPlaceProposedSearchResult:

Public Member Functions

 QPlaceProposedSearchResult ()
 Constructs a new proposed search result.
 
 ~QPlaceProposedSearchResult ()
 Destroys the proposed search result.
 
QPlaceSearchRequest searchRequest () const
 Returns a place search request that can be used to perform an additional proposed search.
 
void setSearchRequest (const QPlaceSearchRequest &request)
 Sets the proposed search request to request.
 
- Public Member Functions inherited from QPlaceSearchResult
 QPlaceSearchResult ()
 Constructs a new search result.
 
 QPlaceSearchResult (const QPlaceSearchResult &other)
 Constructs a copy of other.
 
virtual ~QPlaceSearchResult ()
 Destroys the search result.
 
QPlaceSearchResultoperator= (const QPlaceSearchResult &other)
 Assigns other to this search result and returns a reference to this search result.
 
bool operator== (const QPlaceSearchResult &other) const
 Returns true if other is equal to this search result, otherwise returns false.
 
bool operator!= (const QPlaceSearchResult &other) const
 Returns true if other not equal to this search result, otherwise returns false.
 
SearchResultType type () const
 Returns the result type.
 
QString title () const
 Returns the title of the search result.
 
void setTitle (const QString &title)
 Sets the title of the search result to title.
 
QPlaceIcon icon () const
 Returns an icon that can be used to represent the search result.
 
void setIcon (const QPlaceIcon &icon)
 Sets the icon of the search result to icon.
 

Additional Inherited Members

- Public Types inherited from QPlaceSearchResult
enum  SearchResultType { UnknownSearchResult = 0 , PlaceResult , ProposedSearchResult }
 Defines the type of search result. More...
 
- Protected Member Functions inherited from QPlaceSearchResult
 QPlaceSearchResult (QPlaceSearchResultPrivate *d)
 
- Protected Attributes inherited from QPlaceSearchResult
QSharedDataPointer< QPlaceSearchResultPrivated_ptr
 

Detailed Description

\inmodule QtLocation

Since
QtLocation 5.2

The QPlaceProposedSearchResult class represents a search result containing a proposed search.

See also
QPlaceSearchResult

Definition at line 13 of file qplaceproposedsearchresult.h.

Constructor & Destructor Documentation

◆ QPlaceProposedSearchResult()

QPlaceProposedSearchResult::QPlaceProposedSearchResult ( )

Constructs a new proposed search result.

Contructs a copy of other if possible, otherwise constructs a default proposed search result.

Definition at line 31 of file qplaceproposedsearchresult.cpp.

◆ ~QPlaceProposedSearchResult()

QPlaceProposedSearchResult::~QPlaceProposedSearchResult ( )

Destroys the proposed search result.

Definition at line 49 of file qplaceproposedsearchresult.cpp.

Member Function Documentation

◆ searchRequest()

QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest ( ) const

Returns a place search request that can be used to perform an additional proposed search.

Definition at line 56 of file qplaceproposedsearchresult.cpp.

References d.

Referenced by QDeclarativeSearchResultModel::updateWith().

+ Here is the caller graph for this function:

◆ setSearchRequest()

void QPlaceProposedSearchResult::setSearchRequest ( const QPlaceSearchRequest & request)

Sets the proposed search request to request.

Definition at line 65 of file qplaceproposedsearchresult.cpp.

References d, and request.


The documentation for this class was generated from the following files: