![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtLocation More...
#include <qplaceuser.h>
Public Member Functions | |
QPlaceUser () | |
\qmlvaluetype user \inqmlmodule QtLocation | |
QPlaceUser (const QPlaceUser &other) noexcept | |
Constructs a copy of other. | |
QPlaceUser (QPlaceUser &&other) noexcept=default | |
~QPlaceUser () | |
Destroys the user object. | |
QPlaceUser & | operator= (const QPlaceUser &other) noexcept |
Assigns other to this user and returns a reference to this user. | |
void | swap (QPlaceUser &other) noexcept |
QString | userId () const |
void | setUserId (const QString &identifier) |
QString | name () const |
void | setName (const QString &name) |
Properties | |
QML_STRUCTURED_VALUEQString | userId |
\qmlproperty string QtLocation::user::userId | |
QString | name |
\qmlproperty string QtLocation::user::name | |
Friends | |
bool | operator== (const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept |
Returns true if lhs is equal to rhs, otherwise returns false. | |
bool | operator!= (const QPlaceUser &lhs, const QPlaceUser &rhs) noexcept |
Returns true if lhs is not equal to rhs, otherwise returns false. | |
\inmodule QtLocation
The QPlaceUser class represents an individual user.
Definition at line 17 of file qplaceuser.h.
QPlaceUser::QPlaceUser | ( | ) |
\qmlvaluetype user \inqmlmodule QtLocation
The user type identifies a user who contributed a particular \l Place content item.
Each \l Place content item has an associated user who contributed the content. This type provides information about that user.
Definition at line 54 of file qplaceuser.cpp.
|
defaultnoexcept |
Constructs a copy of other.
|
defaultnoexcept |
|
default |
Destroys the user object.
QString QPlaceUser::name | ( | ) | const |
Definition at line 128 of file qplaceuser.cpp.
References QPlaceUserPrivate::name.
|
noexcept |
Assigns other to this user and returns a reference to this user.
Definition at line 72 of file qplaceuser.cpp.
Definition at line 133 of file qplaceuser.cpp.
References name, and QPlaceUserPrivate::name.
Referenced by parseReview().
Definition at line 113 of file qplaceuser.cpp.
References QPlaceUserPrivate::userId.
Referenced by parseReview().
|
inlinenoexcept |
QString QPlaceUser::userId | ( | ) | const |
Definition at line 108 of file qplaceuser.cpp.
References QPlaceUserPrivate::userId.
|
friend |
Returns true if lhs is not equal to rhs, otherwise returns false.
Definition at line 39 of file qplaceuser.h.
|
friend |
Returns true if lhs is equal to rhs, otherwise returns false.
Definition at line 37 of file qplaceuser.h.
|
readwrite |
\qmlproperty string QtLocation::user::name
This property holds the name of a user.
the name of the user.
Definition at line 21 of file qplaceuser.h.
Referenced by setName().
|
readwrite |
\qmlproperty string QtLocation::user::userId
This property holds the unique identifier of the user.
the identifier of the user.
Definition at line 21 of file qplaceuser.h.
Referenced by QDeclarativePlaceContentModel::data().