The QPlaceSupplier class represents a supplier of a place or content associated with a place. 更多...
头: | #include <QPlaceSupplier> |
qmake: | QT += location |
QPlaceSupplier () | |
QPlaceSupplier (const QPlaceSupplier & other ) | |
~QPlaceSupplier () | |
QPlaceIcon | icon () const |
bool | isEmpty () const |
QString | name () const |
void | setIcon (const QPlaceIcon & icon ) |
void | setName (const QString & name ) |
void | setSupplierId (const QString & 标识符 ) |
void | setUrl (const QUrl & url ) |
QString | supplierId () const |
QUrl | url () const |
QPlaceSupplier & | operator= (const QPlaceSupplier & other ) |
bool | operator!= (const QPlaceSupplier & lhs , const QPlaceSupplier & rhs ) |
bool | operator== (const QPlaceSupplier & lhs , const QPlaceSupplier & rhs ) |
Each instance represents a set of data about a supplier, which can include supplier's name, url and icon. The supplier is typically a business or organization.
Note: The Places API only supports suppliers as 'retrieve-only' objects. Submitting suppliers to a provider is not a supported use case.
This property holds the icon of the supplier.
访问函数:
QPlaceIcon | icon () const |
void | setIcon (const QPlaceIcon & icon ) |
This property holds the name of the supplier which can be displayed to the user.
The name can potentially be localized. The language is dependent on the entity that sets it, typically this is the QPlaceManager 。 QPlaceManager::locales () field defines what language is used.
访问函数:
QString | name () const |
void | setName (const QString & name ) |
This property holds the identifier of the supplier.
The identifier is unique to the manager backend which provided the supplier and is generally not suitable for displaying to the user.
访问函数:
QString | supplierId () const |
void | setSupplierId (const QString & 标识符 ) |
This property holds the URL of the supplier's website.
访问函数:
QUrl | url () const |
void | setUrl (const QUrl & url ) |
Constructs a new supplier object.
[noexcept]
QPlaceSupplier::
QPlaceSupplier
(const
QPlaceSupplier
&
other
)
构造副本为 other .
[noexcept]
QPlaceSupplier::
~QPlaceSupplier
()
Destroys the supplier object.
Returns true if all fields of the place supplier are 0; otherwise returns false.
设置 icon of the supplier.
注意: setter 函数对于特性 icon .
另请参阅 icon ().
设置 name of the supplier.
注意: setter 函数对于特性 name .
另请参阅 name ().
设置 标识符 of the supplier.
注意: setter 函数对于特性 supplierId .
另请参阅 supplierId ().
设置 url of the supplier's website.
注意: setter 函数对于特性 url .
另请参阅 url ().
[noexcept]
QPlaceSupplier
&QPlaceSupplier::
operator=
(const
QPlaceSupplier
&
other
)
赋值 other to this supplier and returns a reference to this supplier.
[noexcept]
bool
operator!=
(const
QPlaceSupplier
&
lhs
, const
QPlaceSupplier
&
rhs
)
返回 true 若 lhs 不等于 rhs ,否则返回 false。
[noexcept]
bool
operator==
(const
QPlaceSupplier
&
lhs
, const
QPlaceSupplier
&
rhs
)
返回 true 若 lhs 等于 rhs ,否则返回 false。