12using namespace Qt::Literals::StringLiterals;
17
18
19
20
21
22
23
24
25
26
29
30
31
34
35
36
39
40
41
44
45
46
47
48
52 json[
"type"_L1] = type;
53 json[
"name"_L1] = name;
54 if (!defaultValue.isEmpty())
55 json[
"defaultValue"_L1] = defaultValue;
60
61
62
63
64
65
66
67
68
69
72
73
74
77
78
79
80
83
84
85
88
89
90
91
92
96 json[
"name"_L1] = name;
98 json[
"value"_L1] = value;
100 json[
"since"_L1] = since;
105
106
107
108
109
110
111
112
113
114
115
116
117
120
121
122
125
126
127
130
131
132
133
134
135
138
139
140
143
144
145
146
149
150
151
152
155
156
157
160
161
162
163
166
167
168
171
172
173
176
177
178
179
182
183
184
187
188
189
192
193
194
197
198
199
200
203
204
205
208
209
210
213
214
215
216
217
218
219
220
225 json[
"name"_L1] = name;
226 json[
"fullName"_L1] = fullName;
227 json[
"signature"_L1] = signature;
228 json[
"href"_L1] = href;
229 if (!brief.isEmpty())
230 json[
"brief"_L1] = brief;
232 if (
const auto t = nodeTypeToJson(nodeType))
233 json[
"nodeType"_L1] = *t;
234 json[
"status"_L1] = statusToJson(status);
235 json[
"access"_L1] = accessToJson(access);
237 json[
"overloadNumber"_L1] = overloadNumber;
238 json[
"isPrimaryOverload"_L1] = isPrimaryOverload;
240 if (!parameters.isEmpty()) {
242 for (
const auto &p : parameters)
243 arr.append(p.toJson());
244 json[
"parameters"_L1] = arr;
247 if (!enumValues.isEmpty()) {
249 for (
const auto &ev : enumValues)
250 arr.append(ev.toJson());
251 json[
"enumValues"_L1] = arr;
254 json[
"isStatic"_L1] = isStatic;
255 json[
"isConst"_L1] = isConst;
256 json[
"isVirtual"_L1] = isVirtual;
257 json[
"isSignal"_L1] = isSignal;
258 json[
"isSlot"_L1] = isSlot;
261 json[
"isAttached"_L1] =
true;
263 json[
"isDefault"_L1] =
true;
265 json[
"isReadOnly"_L1] =
true;
267 json[
"isRequired"_L1] =
true;
268 if (!dataType.isEmpty())
269 json[
"dataType"_L1] = dataType;
271 if (!anchorId.isEmpty())
272 json[
"anchorId"_L1] = anchorId;
273 if (!synopsis.isEmpty())
274 json[
"synopsis"_L1] = synopsis;
275 if (!since.isEmpty())
276 json[
"since"_L1] = since;
277 if (!threadSafety.isEmpty())
278 json[
"threadSafety"_L1] = threadSafety;
279 if (!comparisonCategory.isEmpty())
280 json[
"comparisonCategory"_L1] = comparisonCategory;
282 json[
"isNoexcept"_L1] =
true;
283 if (!noexceptNote.isEmpty())
284 json[
"noexceptNote"_L1] = noexceptNote;
286 if (!body.isEmpty()) {
288 for (
const auto &block : body)
289 arr.append(block.toJson());
290 json[
"body"_L1] = arr;
293 if (!alsoList.isEmpty()) {
295 for (
const auto &block : alsoList)
296 arr.append(block.toJson());
297 json[
"alsoList"_L1] = arr;
304
305
306
307
308
309
310
311
314
315
316
319
320
321
324
325
326
329
330
331
332
333
334
338 json[
"className"_L1] = className;
339 json[
"count"_L1] = count;
340 json[
"href"_L1] = href;
345
346
347
348
349
350
351
352
353
354
355
356
359
360
361
362
365
366
367
370
371
372
375
376
377
380
381
382
385
386
387
390
391
392
395
396
397
398
399
400
406 json[
"title"_L1] = title;
407 json[
"singular"_L1] = singular;
408 json[
"plural"_L1] = plural;
410 QJsonArray membersArray;
411 for (
const auto &m : members)
412 membersArray.append(m.toJson());
413 json[
"members"_L1] = membersArray;
415 if (!reimplementedMembers.isEmpty()) {
417 for (
const auto &m : reimplementedMembers)
418 arr.append(m.toJson());
419 json[
"reimplementedMembers"_L1] = arr;
422 if (!inheritedMembers.isEmpty()) {
424 for (
const auto &im : inheritedMembers)
425 arr.append(im.toJson());
426 json[
"inheritedMembers"_L1] = arr;
433
434
435
436
437
438
439
440
443
444
445
446
447
448
452 json[
"signature"_L1] = signature;
453 json[
"href"_L1] = href;
455 if (!hints.isEmpty()) {
457 for (
const auto &hint : hints)
459 json[
"hints"_L1] = arr;
463 json[
"isPropertyGroup"_L1] =
true;
465 if (!children.isEmpty()) {
467 for (
const auto &child : children)
468 arr.append(child.toJson());
469 json[
"children"_L1] = arr;
476
477
478
479
480
481
482
485
486
487
488
489
493 json[
"typeName"_L1] = typeName;
494 json[
"typeHref"_L1] = typeHref;
497 for (
const auto &entry : members)
498 arr.append(entry.toJson());
499 json[
"members"_L1] = arr;
505
506
507
508
509
510
511
512
515
516
517
518
519
520
521
525 json[
"typeName"_L1] = typeName;
526 json[
"typeHref"_L1] = typeHref;
527 json[
"isQmlType"_L1] = isQmlType;
529 if (!members.isEmpty()) {
531 for (
const auto &entry : members)
532 arr.append(entry.toJson());
533 json[
"members"_L1] = arr;
536 if (!memberGroups.isEmpty()) {
538 for (
const auto &group : memberGroups)
539 arr.append(group.toJson());
540 json[
"memberGroups"_L1] = arr;
Combined button and popup list for selecting options.
A single entry in an all-members listing page.
QJsonObject toJson() const
Converts the entry to a QJsonObject for template rendering.
Intermediate representation of the all-members listing page.
QJsonObject toJson() const
Converts the all-members IR to a QJsonObject for template rendering.
Intermediate representation of a single enum value.
QJsonObject toJson() const
\variable IR::EnumValueIR::name Enumerator name.
Summary of members inherited from a single base class.
QJsonObject toJson() const
\variable IR::InheritedMembersIR::className Fully qualified name of the base class.
Members grouped by originating QML type in an all-members listing.
QJsonObject toJson() const
Converts the member group to a QJsonObject for template rendering.
Intermediate representation of a single documentable member.
QJsonObject toJson() const
\variable IR::MemberIR::name Unqualified member name.
Intermediate representation of a function parameter.
QJsonObject toJson() const
\variable IR::ParameterIR::type Parameter type (such as "const QString &").
Intermediate representation of a member summary section.
QJsonObject toJson() const
\variable IR::SectionIR::id Stable ASCII identifier for anchor links, generated from the title via Ut...