From 588d624837ae0174139f8db930ad20612463b1dd Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Fri, 20 Nov 2020 13:20:52 +0100 Subject: qmltyperegistrar: Expose interface information Change-Id: Ica3f5c6696542921bc8d399cd46d901ba06f6d83 Reviewed-by: Ulf Hermann --- src/qmlcompiler/qqmljsscope_p.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/qmlcompiler/qqmljsscope_p.h') diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h index de6ea58906..0801e6eb7e 100644 --- a/src/qmlcompiler/qqmljsscope_p.h +++ b/src/qmlcompiler/qqmljsscope_p.h @@ -185,6 +185,9 @@ public: void addExport(const QString &name, const QString &package, const QTypeRevision &version); QList exports() const { return m_exports; } + void setInterfaceNames(const QStringList& interfaces) { m_interfaceNames = interfaces; } + QStringList interfaceNames() { return m_interfaceNames; } + // If isComposite(), this is the QML/JS name of the prototype. Otherwise it's the // relevant base class (in the hierarchy starting from QObject) of a C++ type. void setBaseTypeName(const QString &baseTypeName) { m_baseTypeName = baseTypeName; } @@ -272,6 +275,7 @@ private: ScopeType m_scopeType = QMLScope; QList m_exports; + QStringList m_interfaceNames; QString m_defaultPropertyName; QString m_attachedTypeName; -- cgit v1.2.3