9QT_DEFINE_QSDP_SPECIALIZATION_DTOR(QPlaceRatingsPrivate)
11bool QPlaceRatingsPrivate::operator==(
const QPlaceRatingsPrivate &other)
const
13 return average == other.average && maximum == other.maximum && count == other.count;
16bool QPlaceRatingsPrivate::isEmpty()
const
18 return count == 0 && average == 0 && maximum == 0;
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
39
40
41
42
43
44
45
46
47
48
49
50
53
54
55QPlaceRatings::QPlaceRatings()
56 : d(
new QPlaceRatingsPrivate)
61
62
63QPlaceRatings::QPlaceRatings(
const QPlaceRatings &other)
noexcept =
default;
66
67
68QPlaceRatings::~QPlaceRatings() =
default;
71
72
73
74QPlaceRatings &QPlaceRatings::operator=(
const QPlaceRatings &other)
noexcept
84
85
86
87
90
91
92
93
95bool QPlaceRatings::isEqual(
const QPlaceRatings &other)
const noexcept
97 return (*(d.constData()) == *(other.d.constData()));
101
102
103
104
105
106
109
110
111
112qreal QPlaceRatings::average()
const
117void QPlaceRatings::setAverage(qreal average)
119 d->average = average;
123
124
125
126
129
130
131
132qreal QPlaceRatings::maximum()
const
137void QPlaceRatings::setMaximum(qreal max)
143
144
145
146
147
150
151
152
153int QPlaceRatings::count()
const
158void QPlaceRatings::setCount(
int count)
164
165
166bool QPlaceRatings::isEmpty()
const
171#include "moc_qplaceratings.cpp"