9inline QPlaceContentPrivate *QPlaceContent::d_func()
14inline const QPlaceContentPrivate *QPlaceContent::d_func()
const
16 return d_ptr.constData();
19bool QPlaceContentPrivate::compare(
const QPlaceContentPrivate *other)
const
21 return data == other->data;
24QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QPlaceContentPrivate)
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
54
55
56
57
58
59
60
61
62
65
66
67
68
69
70
71
72
73
74
75
76
77
78
81
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
126
127
128QPlaceContent::QPlaceContent(Type type)
129 : d_ptr(
new QPlaceContentPrivate(type))
133
134
135QPlaceContent::QPlaceContent(
const QPlaceContent &other)
noexcept =
default;
138
139
140
141QPlaceContent &QPlaceContent::operator=(
const QPlaceContent &other)
noexcept =
default;
144
145
146QPlaceContent::~QPlaceContent() =
default;
149
150
151void QPlaceContent::detach()
157
158
159QPlaceContent::Type QPlaceContent::type()
const
163 return d_ptr->type();
167
168
169
170bool QPlaceContent::operator==(
const QPlaceContent &other)
const
176 if (type() != other.type())
179 return d_ptr->compare(other.d_ptr.constData());
183
184
185
186bool QPlaceContent::operator!=(
const QPlaceContent &other)
const
188 return !(*
this == other);
192
193
194
195QList<QPlaceContent::DataTag> QPlaceContent::dataTags()
const
197 Q_D(
const QPlaceContent);
198 return d->data.keys();
202
203
204
205QVariant QPlaceContent::value(QPlaceContent::DataTag tag)
const
207 Q_D(
const QPlaceContent);
208 return d->data.value(tag);
212
213
214void QPlaceContent::setValue(QPlaceContent::DataTag tag,
const QVariant &value)
218 d->data[tag] = value;