20 QML_VALUE_TYPE(ratings)
23 Q_PROPERTY(qreal average READ average WRITE setAverage)
24 Q_PROPERTY(qreal maximum READ maximum WRITE setMaximum)
25 Q_PROPERTY(
int count READ count WRITE setCount)
29 QPlaceRatings(
const QPlaceRatings &other)
noexcept;
30 QPlaceRatings(QPlaceRatings &&other)
noexcept =
default;
33 QPlaceRatings &operator=(
const QPlaceRatings &other)
noexcept;
34 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceRatings)
36 void swap(QPlaceRatings &other)
noexcept { d.swap(other.d); }
38 friend inline bool operator==(
const QPlaceRatings &lhs,
const QPlaceRatings &rhs)
noexcept
39 {
return lhs.isEqual(rhs); }
40 friend inline bool operator!=(
const QPlaceRatings &lhs,
const QPlaceRatings &rhs)
noexcept
41 {
return !lhs.isEqual(rhs); }
43 qreal average()
const;
44 void setAverage(qreal average);
47 void setCount(
int count);
49 qreal maximum()
const;
50 void setMaximum(qreal max);
55 QSharedDataPointer<QPlaceRatingsPrivate> d;
57 bool isEqual(
const QPlaceRatings &other)
const noexcept;