![]() |
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 | InheritsInfo |
| struct | InheritedByEntry |
| struct | NativeTypeInfo |
Public Member Functions | |
| QJsonObject | toJson () const |
| Converts the QmlTypeInfo to a QJsonObject for template rendering. | |
Public Attributes | |
| QString | importStatement |
| bool | isSingleton { false } |
| bool | isValueType { false } |
| std::optional< InheritsInfo > | inherits |
| QList< InheritedByEntry > | inheritedBy |
| std::optional< NativeTypeInfo > | nativeType |
Definition at line 24 of file document.h.
|
nodiscard |
Converts the QmlTypeInfo to a QJsonObject for template rendering.
Always emits isSingleton and isValueType. The importStatement, inherits, inheritedBy, and nativeType fields are omitted when they don't have values. Templates should use {existsIn()} to guard access to optional fields.
Definition at line 38 of file document.cpp.
| QString IR::QmlTypeInfo::importStatement |
Definition at line 26 of file document.h.
| QList<InheritedByEntry> IR::QmlTypeInfo::inheritedBy |
Definition at line 41 of file document.h.
| std::optional<InheritsInfo> IR::QmlTypeInfo::inherits |
Definition at line 35 of file document.h.
| bool IR::QmlTypeInfo::isSingleton { false } |
Definition at line 27 of file document.h.
Referenced by IR::Builder::buildPageIR().
| bool IR::QmlTypeInfo::isValueType { false } |
Definition at line 28 of file document.h.
Referenced by IR::Builder::buildPageIR().
| std::optional<NativeTypeInfo> IR::QmlTypeInfo::nativeType |
Definition at line 47 of file document.h.