10inline QPlaceContentPrivate *QPlaceContent::d_func()
15inline const QPlaceContentPrivate *QPlaceContent::d_func()
const
17 return d_ptr.constData();
20bool QPlaceContentPrivate::compare(
const QPlaceContentPrivate *other)
const
22 return data == other->data;
25QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QPlaceContentPrivate)
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
55
56
57
58
59
60
61
62
63
66
67
68
69
70
71
72
73
74
75
76
77
78
79
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
127
128
129QPlaceContent::QPlaceContent(Type type)
130 : d_ptr(
new QPlaceContentPrivate(type))
134
135
136QPlaceContent::QPlaceContent(
const QPlaceContent &other)
noexcept =
default;
139
140
141
142QPlaceContent &QPlaceContent::operator=(
const QPlaceContent &other)
noexcept =
default;
145
146
147QPlaceContent::~QPlaceContent() =
default;
150
151
152void QPlaceContent::detach()
158
159
160QPlaceContent::Type QPlaceContent::type()
const
164 return d_ptr->type();
168
169
170
171bool QPlaceContent::operator==(
const QPlaceContent &other)
const
177 if (type() != other.type())
180 return d_ptr->compare(other.d_ptr.constData());
184
185
186
187bool QPlaceContent::operator!=(
const QPlaceContent &other)
const
189 return !(*
this == other);
193
194
195
196QList<QPlaceContent::DataTag> QPlaceContent::dataTags()
const
198 Q_D(
const QPlaceContent);
199 return d->data.keys();
203
204
205
206QVariant QPlaceContent::value(QPlaceContent::DataTag tag)
const
208 Q_D(
const QPlaceContent);
209 return d->data.value(tag);
213
214
215void QPlaceContent::setValue(QPlaceContent::DataTag tag,
const QVariant &value)
219 d->data[tag] = value;