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
118
119
120
121
122
123
124
125
126
127
128
129
130
133
134
135
136
139
140
141
144
145
146
149
150
151
152
155
156
157
158
159
160
161
164
165
166
169
170
171
174
175
176
179
180
181
184
185
186
189
190
191
192
193
194
198 json[
"firstIndex"_L1] = firstIndex;
199 json[
"count"_L1] = count;
200 json[
"status"_L1] = statusToJson(status);
201 json[
"isPlural"_L1] = isPlural;
202 if (!anchorId.isEmpty())
203 json[
"anchorId"_L1] = anchorId;
204 if (!deprecatedSince.isEmpty())
205 json[
"deprecatedSince"_L1] = deprecatedSince;
206 if (!typeNoun.isEmpty())
207 json[
"typeNoun"_L1] = typeNoun;
208 if (!deprecatedSinceQualified.isEmpty())
209 json[
"deprecatedSinceQualified"_L1] = deprecatedSinceQualified;
210 if (!deprecationNote.isEmpty()) {
212 for (
const auto &block : deprecationNote)
213 note.append(block.toJson());
214 json[
"deprecationNote"_L1] = note;
217 QJsonArray bodyArray;
218 for (
const auto &block : body)
219 bodyArray.append(block.toJson());
220 json[
"body"_L1] = bodyArray;
222 QJsonArray alsoArray;
223 for (
const auto &block : alsoList)
224 alsoArray.append(block.toJson());
225 json[
"alsoList"_L1] = alsoArray;
231
232
233
234
235
236
237
238
239
240
241
242
243
246
247
248
251
252
253
256
257
258
259
260
261
264
265
266
269
270
271
272
275
276
277
278
281
282
283
286
287
288
289
292
293
294
295
296
299
300
301
302
303
304
307
308
309
310
311
312
315
316
317
320
321
322
325
326
327
328
331
332
333
336
337
338
339
340
341
344
345
346
349
350
351
354
355
356
357
360
361
362
365
366
367
370
371
372
373
374
375
376
379
380
381
382
383
384
385
386
391 json[
"name"_L1] = name;
392 json[
"fullName"_L1] = fullName;
393 json[
"signature"_L1] = signature;
394 json[
"href"_L1] = href;
395 if (!brief.isEmpty())
396 json[
"brief"_L1] = brief;
398 if (
const auto t = nodeTypeToJson(nodeType))
399 json[
"nodeType"_L1] = *t;
400 json[
"status"_L1] = statusToJson(status);
401 json[
"access"_L1] = accessToJson(access);
402 if (!deprecatedSince.isEmpty())
403 json[
"deprecatedSince"_L1] = deprecatedSince;
404 if (!typeNoun.isEmpty())
405 json[
"typeNoun"_L1] = typeNoun;
406 if (!deprecatedSinceQualified.isEmpty())
407 json[
"deprecatedSinceQualified"_L1] = deprecatedSinceQualified;
408 if (!deprecationNote.isEmpty()) {
410 for (
const auto &block : deprecationNote)
411 note.append(block.toJson());
412 json[
"deprecationNote"_L1] = note;
415 json[
"overloadNumber"_L1] = overloadNumber;
416 json[
"isPrimaryOverload"_L1] = isPrimaryOverload;
418 if (!parameters.isEmpty()) {
420 for (
const auto &p : parameters)
421 arr.append(p.toJson());
422 json[
"parameters"_L1] = arr;
425 if (!enumValues.isEmpty()) {
427 for (
const auto &ev : enumValues)
428 arr.append(ev.toJson());
429 json[
"enumValues"_L1] = arr;
432 json[
"isStatic"_L1] = isStatic;
433 json[
"isConst"_L1] = isConst;
434 json[
"isVirtual"_L1] = isVirtual;
435 json[
"isSignal"_L1] = isSignal;
436 json[
"isSlot"_L1] = isSlot;
439 json[
"isAttached"_L1] =
true;
441 json[
"isDefault"_L1] =
true;
443 json[
"isReadOnly"_L1] =
true;
445 json[
"isRequired"_L1] =
true;
446 if (!dataType.isEmpty())
447 json[
"dataType"_L1] = dataType;
449 json[
"anchorId"_L1] = anchorId;
450 json[
"synopsis"_L1] = synopsis;
451 if (!signatureSpans.isEmpty()) {
453 for (
const auto &span : signatureSpans)
454 arr.append(span.toJson());
455 json[
"signatureSpans"_L1] = arr;
457 if (!since.isEmpty())
458 json[
"since"_L1] = since;
459 if (!threadSafety.isEmpty())
460 json[
"threadSafety"_L1] = threadSafety;
461 if (!comparisonCategory.isEmpty())
462 json[
"comparisonCategory"_L1] = comparisonCategory;
464 json[
"isNoexcept"_L1] =
true;
465 if (!noexceptNote.isEmpty())
466 json[
"noexceptNote"_L1] = noexceptNote;
468 if (!body.isEmpty()) {
470 for (
const auto &block : body)
471 arr.append(block.toJson());
472 json[
"body"_L1] = arr;
475 if (!alsoList.isEmpty()) {
477 for (
const auto &block : alsoList)
478 arr.append(block.toJson());
479 json[
"alsoList"_L1] = arr;
482 if (sharedGroup >= 0)
483 json[
"sharedGroup"_L1] = sharedGroup;
489
490
491
492
493
494
495
496
499
500
501
504
505
506
509
510
511
514
515
516
517
518
519
523 json[
"className"_L1] = className;
524 json[
"count"_L1] = count;
525 json[
"href"_L1] = href;
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
548
549
550
551
554
555
556
559
560
561
564
565
566
569
570
571
574
575
576
579
580
581
584
585
586
587
588
589
592
593
594
595
596
597
603 json[
"title"_L1] = title;
604 json[
"singular"_L1] = singular;
605 json[
"plural"_L1] = plural;
607 QJsonArray membersArray;
608 for (
const auto &m : members)
609 membersArray.append(m.toJson());
610 json[
"members"_L1] = membersArray;
612 if (!reimplementedMembers.isEmpty()) {
614 for (
const auto &m : reimplementedMembers)
615 arr.append(m.toJson());
616 json[
"reimplementedMembers"_L1] = arr;
619 if (!inheritedMembers.isEmpty()) {
621 for (
const auto &im : inheritedMembers)
622 arr.append(im.toJson());
623 json[
"inheritedMembers"_L1] = arr;
626 if (!sharedGroups.isEmpty()) {
628 for (
const auto &group : sharedGroups)
629 arr.append(group.toJson());
630 json[
"sharedGroups"_L1] = arr;
637
638
639
640
641
642
643
644
647
648
649
650
651
652
656 json[
"signature"_L1] = signature;
657 if (!signatureSpans.isEmpty()) {
659 for (
const auto &span : signatureSpans)
660 arr.append(span.toJson());
661 json[
"signatureSpans"_L1] = arr;
663 json[
"href"_L1] = href;
665 if (!hints.isEmpty()) {
667 for (
const auto &hint : hints)
669 json[
"hints"_L1] = arr;
673 json[
"isPropertyGroup"_L1] =
true;
675 if (!children.isEmpty()) {
677 for (
const auto &child : children)
678 arr.append(child.toJson());
679 json[
"children"_L1] = arr;
686
687
688
689
690
691
692
695
696
697
698
699
703 json[
"typeName"_L1] = typeName;
704 json[
"typeHref"_L1] = typeHref;
707 for (
const auto &entry : members)
708 arr.append(entry.toJson());
709 json[
"members"_L1] = arr;
715
716
717
718
719
720
721
722
725
726
727
728
729
730
731
735 json[
"typeName"_L1] = typeName;
736 json[
"typeHref"_L1] = typeHref;
737 json[
"isQmlType"_L1] = isQmlType;
739 if (!members.isEmpty()) {
741 for (
const auto &entry : members)
742 arr.append(entry.toJson());
743 json[
"members"_L1] = arr;
746 if (!memberGroups.isEmpty()) {
748 for (
const auto &group : memberGroups)
749 arr.append(group.toJson());
750 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 Te...
One documentation body and see-also list shared by a group of members.
QJsonObject toJson() const
\variable IR::SharedDetailGroup::firstIndex Zero-based index of the group's first member in the secti...