aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsscope_p.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-08-30 15:57:45 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-09-02 16:17:49 +0200
commit9f64e3ff0fb4fe7e2ac3e6ddba9dfee82bdfc16a (patch)
tree78ad5a949ad141c3d37fb34ed64bc831f3f29099 /src/qmlcompiler/qqmljsscope_p.h
parent44e5448b1f614a10647c9e15ae209519de223748 (diff)
qmllint: Warn about deferred properties with ids
Change-Id: I3176f5c4f2d959e2a139d3cc9b2dbd0005890ea4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index acc837d2a2..614e8c721a 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -214,6 +214,11 @@ public:
bool hasInterface(const QString &name) const;
bool hasOwnInterface(const QString &name) const { return m_interfaceNames.contains(name); }
+ void setOwnDeferredNames(const QStringList &names) { m_ownDeferredNames = names; }
+ QStringList ownDeferredNames() const { return m_ownDeferredNames; }
+
+ bool isNameDeferred(const QString &name) const;
+
// 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; }
@@ -425,6 +430,7 @@ private:
ScopeType m_scopeType = QMLScope;
QList<Export> m_exports;
QStringList m_interfaceNames;
+ QStringList m_ownDeferredNames;
QString m_defaultPropertyName;
QString m_parentPropertyName;