diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-29 17:33:17 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 15:32:42 +0200 |
| commit | e548c8576d1794cdac4b9a679b90cb74cf307e44 (patch) | |
| tree | b743c5c080032db37e3cc477c820eb78adcfe112 /tools/shared/scopetree.h | |
| parent | d9e98c7f6b6c3331a486cabfe6cd0c07f7bfffe9 (diff) | |
qmllint: Don't use C++ names of QML types
The C++ names are an implementation detail of the importer, and qmllint
has no business messing with them. All the types are supplied as
ScopeTree by the importer now.
Change-Id: I3ef2b5da1dc19f95c7f2a5d80fa1297ba10bef8f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/shared/scopetree.h')
| -rw-r--r-- | tools/shared/scopetree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shared/scopetree.h b/tools/shared/scopetree.h index b4c241d561..df8dfcd2bc 100644 --- a/tools/shared/scopetree.h +++ b/tools/shared/scopetree.h @@ -165,6 +165,7 @@ public: QString attachedTypeName() const { return m_attachedTypeName; } void setAttachedTypeName(const QString &name) { m_attachedTypeName = name; } + ScopeTree::ConstPtr attachedType() const { return m_attachedType; } bool isSingleton() const { return m_flags & Singleton; } bool isCreatable() const { return m_flags & Creatable; } @@ -235,6 +236,8 @@ private: QString m_defaultPropertyName; QString m_attachedTypeName; + ScopeTree::WeakPtr m_attachedType; + Flags m_flags; AccessSemantics m_semantics = AccessSemantics::Reference; }; |
