![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <document.h>
Classes | |
| struct | MemberEntry |
Public Member Functions | |
| QJsonObject | toJson () const |
| Converts the CollectionInfo to a QJsonObject for template rendering. | |
Public Attributes | |
| QString | logicalModuleName |
| QString | logicalModuleVersion |
| QString | qtVariable |
| QString | cmakePackage |
| QString | cmakeComponent |
| QString | cmakeTargetItem |
| QString | state |
| bool | isModule { false } |
| bool | isQmlModule { false } |
| bool | isGroup { false } |
| bool | noAutoList { false } |
| QList< MemberEntry > | namespaces |
| QList< MemberEntry > | classes |
| QList< MemberEntry > | members |
Definition at line 52 of file document.h.
|
nodiscard |
Converts the CollectionInfo to a QJsonObject for template rendering.
Type flags (isModule, isQmlModule, isGroup) and noAutoList are always emitted so templates can use unconditional checks. CMake/qmake build variables are always emitted as empty strings when absent, for template safety. Module metadata (logicalModuleName, logicalModuleVersion, state) is conditionally emitted when non-empty. Member arrays are always emitted (empty arrays when no entries) so Inja can iterate without guards.
Definition at line 99 of file document.cpp.
| QList<MemberEntry> IR::CollectionInfo::classes |
Definition at line 74 of file document.h.
| QString IR::CollectionInfo::cmakeComponent |
Definition at line 58 of file document.h.
| QString IR::CollectionInfo::cmakePackage |
Definition at line 57 of file document.h.
| QString IR::CollectionInfo::cmakeTargetItem |
Definition at line 59 of file document.h.
| bool IR::CollectionInfo::isGroup { false } |
Definition at line 64 of file document.h.
Referenced by IR::Builder::buildPageIR().
| bool IR::CollectionInfo::isModule { false } |
Definition at line 62 of file document.h.
Referenced by IR::Builder::buildPageIR().
| bool IR::CollectionInfo::isQmlModule { false } |
Definition at line 63 of file document.h.
Referenced by IR::Builder::buildPageIR().
| QString IR::CollectionInfo::logicalModuleName |
Definition at line 54 of file document.h.
| QString IR::CollectionInfo::logicalModuleVersion |
Definition at line 55 of file document.h.
| QList<MemberEntry> IR::CollectionInfo::members |
Definition at line 75 of file document.h.
| QList<MemberEntry> IR::CollectionInfo::namespaces |
Definition at line 73 of file document.h.
| bool IR::CollectionInfo::noAutoList { false } |
Definition at line 65 of file document.h.
Referenced by IR::Builder::buildPageIR().
| QString IR::CollectionInfo::qtVariable |
Definition at line 56 of file document.h.
| QString IR::CollectionInfo::state |
Definition at line 60 of file document.h.