10QT_DEFINE_QSDP_SPECIALIZATION_DTOR(QPlaceRatingsPrivate)
12bool QPlaceRatingsPrivate::operator==(
const QPlaceRatingsPrivate &other)
const
14 return average == other.average && maximum == other.maximum && count == other.count;
17bool QPlaceRatingsPrivate::isEmpty()
const
19 return count == 0 && average == 0 && maximum == 0;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
40
41
42
43
44
45
46
47
48
49
50
51
54
55
56QPlaceRatings::QPlaceRatings()
57 : d(
new QPlaceRatingsPrivate)
62
63
64QPlaceRatings::QPlaceRatings(
const QPlaceRatings &other)
noexcept =
default;
67
68
69QPlaceRatings::~QPlaceRatings() =
default;
72
73
74
75QPlaceRatings &QPlaceRatings::operator=(
const QPlaceRatings &other)
noexcept
85
86
87
88
91
92
93
94
96bool QPlaceRatings::isEqual(
const QPlaceRatings &other)
const noexcept
98 return (*(d.constData()) == *(other.d.constData()));
102
103
104
105
106
107
110
111
112
113qreal QPlaceRatings::average()
const
118void QPlaceRatings::setAverage(qreal average)
120 d->average = average;
124
125
126
127
130
131
132
133qreal QPlaceRatings::maximum()
const
138void QPlaceRatings::setMaximum(qreal max)
144
145
146
147
148
151
152
153
154int QPlaceRatings::count()
const
159void QPlaceRatings::setCount(
int count)
165
166
167bool QPlaceRatings::isEmpty()
const
172#include "moc_qplaceratings.cpp"