22 QML_VALUE_TYPE(placeAttribute)
24 Q_PROPERTY(QString label READ label WRITE setLabel)
25 Q_PROPERTY(QString text READ text WRITE setText)
28 static const QString OpeningHours;
29 static const QString Payment;
30 static const QString Provider;
33 QPlaceAttribute(
const QPlaceAttribute &other)
noexcept;
34 QPlaceAttribute(QPlaceAttribute &&other)
noexcept =
default;
37 QPlaceAttribute &operator=(
const QPlaceAttribute &other)
noexcept;
38 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceAttribute)
40 void swap(QPlaceAttribute &other)
noexcept { d_ptr.swap(other.d_ptr); }
42 friend inline bool operator==(
const QPlaceAttribute &lhs,
const QPlaceAttribute &rhs)
noexcept
43 {
return lhs.isEqual(rhs); }
44 friend inline bool operator!=(
const QPlaceAttribute &lhs,
const QPlaceAttribute &rhs)
noexcept
45 {
return !lhs.isEqual(rhs); }
47 QString label()
const;
48 void setLabel(
const QString &label);
51 void setText(
const QString &text);
56 QSharedDataPointer<QPlaceAttributePrivate> d_ptr;
57 bool isEqual(
const QPlaceAttribute &other)
const noexcept;