aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4executablecompilationunit_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-01-08 17:48:27 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-01-18 14:54:21 +0100
commita1dbd28e89f055c191ca5580cea6f840017e52f1 (patch)
tree33dbd44cea9d29baf73ef5cb75b2c4e5cf7c62f4 /src/qml/jsruntime/qv4executablecompilationunit_p.h
parent6eb26fe88648265ff4f7f1508280a24bb2cb900d (diff)
QtQml: Move qmlType into base CU
Change-Id: I81ae9a4d24518dffc5b924994d45203958bb9546 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit_p.h')
-rw-r--r--src/qml/jsruntime/qv4executablecompilationunit_p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit_p.h b/src/qml/jsruntime/qv4executablecompilationunit_p.h
index 01a564eb23..694a067c1b 100644
--- a/src/qml/jsruntime/qv4executablecompilationunit_p.h
+++ b/src/qml/jsruntime/qv4executablecompilationunit_p.h
@@ -134,9 +134,14 @@ public:
return m_compilationUnit->verifyChecksum(dependencyHasher);
}
- QQmlType qmlTypeForComponent(const QString &inlineComponentName = QString()) const;
+ QQmlType qmlTypeForComponent(const QString &inlineComponentName = QString()) const
+ {
+ return m_compilationUnit->qmlTypeForComponent(inlineComponentName);
+ }
+
+ QQmlType qmlType() const { return m_compilationUnit->qmlType; }
- QQmlType qmlType;
+ QMetaType metaType() const { return qmlType().typeId(); }
int inlineComponentId(const QString &inlineComponentName) const
{