diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-08 17:48:27 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-18 14:54:21 +0100 |
| commit | a1dbd28e89f055c191ca5580cea6f840017e52f1 (patch) | |
| tree | 33dbd44cea9d29baf73ef5cb75b2c4e5cf7c62f4 /src/qml/common/qv4compileddata.cpp | |
| parent | 6eb26fe88648265ff4f7f1508280a24bb2cb900d (diff) | |
QtQml: Move qmlType into base CU
Change-Id: I81ae9a4d24518dffc5b924994d45203958bb9546
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/common/qv4compileddata.cpp')
| -rw-r--r-- | src/qml/common/qv4compileddata.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/common/qv4compileddata.cpp b/src/qml/common/qv4compileddata.cpp index 38bd161db4..6087db9b92 100644 --- a/src/qml/common/qv4compileddata.cpp +++ b/src/qml/common/qv4compileddata.cpp @@ -206,6 +206,13 @@ bool CompilationUnit::verifyChecksum(const DependentTypesHasher &dependencyHashe sizeof(data->dependencyMD5Checksum)) == 0; } +QQmlType CompilationUnit::qmlTypeForComponent(const QString &inlineComponentName) const +{ + if (inlineComponentName.isEmpty()) + return qmlType; + return inlineComponentData[inlineComponentName].qmlType; +} + } // namespace CompiledData } // namespace QV4 |
