Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
IR::QmlTypeInfo Struct Reference

#include <document.h>

Collaboration diagram for IR::QmlTypeInfo:

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< InheritsInfoinherits
QList< InheritedByEntryinheritedBy
std::optional< NativeTypeInfonativeType

Detailed Description

Definition at line 24 of file document.h.

Member Function Documentation

◆ toJson()

QJsonObject IR::QmlTypeInfo::toJson ( ) const
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.

Member Data Documentation

◆ importStatement

QString IR::QmlTypeInfo::importStatement

Definition at line 26 of file document.h.

◆ inheritedBy

QList<InheritedByEntry> IR::QmlTypeInfo::inheritedBy

Definition at line 41 of file document.h.

◆ inherits

std::optional<InheritsInfo> IR::QmlTypeInfo::inherits

Definition at line 35 of file document.h.

◆ isSingleton

bool IR::QmlTypeInfo::isSingleton { false }

Definition at line 27 of file document.h.

Referenced by IR::Builder::buildPageIR().

◆ isValueType

bool IR::QmlTypeInfo::isValueType { false }

Definition at line 28 of file document.h.

Referenced by IR::Builder::buildPageIR().

◆ nativeType

std::optional<NativeTypeInfo> IR::QmlTypeInfo::nativeType

Definition at line 47 of file document.h.


The documentation for this struct was generated from the following files: