23 QML_VALUE_TYPE(placeAttribute)
25 Q_PROPERTY(QString label READ label WRITE setLabel)
26 Q_PROPERTY(QString text READ text WRITE setText)
29 static const QString OpeningHours;
30 static const QString Payment;
31 static const QString Provider;
34 QPlaceAttribute(
const QPlaceAttribute &other)
noexcept;
35 QPlaceAttribute(QPlaceAttribute &&other)
noexcept =
default;
38 QPlaceAttribute &operator=(
const QPlaceAttribute &other)
noexcept;
39 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceAttribute)
41 void swap(QPlaceAttribute &other)
noexcept { d_ptr.swap(other.d_ptr); }
43 friend inline bool operator==(
const QPlaceAttribute &lhs,
const QPlaceAttribute &rhs)
noexcept
44 {
return lhs.isEqual(rhs); }
45 friend inline bool operator!=(
const QPlaceAttribute &lhs,
const QPlaceAttribute &rhs)
noexcept
46 {
return !lhs.isEqual(rhs); }
48 QString label()
const;
49 void setLabel(
const QString &label);
52 void setText(
const QString &text);
57 QSharedDataPointer<QPlaceAttributePrivate> d_ptr;
58 bool isEqual(
const QPlaceAttribute &other)
const noexcept;