diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-13 17:50:02 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-18 13:48:09 +0100 |
commit | 6b1f42c72f060010f3c73f4502dcd10647f205c1 (patch) | |
tree | 760a1bf2f184a7ee1e9c5f678e8f7b357eab761c /tools/qmllint/findunqualified.cpp | |
parent | 6fb335ebcec9c5efc6a2d7786e7bbba23c583d48 (diff) |
qmllint: Remove special cases for Component, QtObject, and Connections
The plugins.qmltypes for QtQml have proper descriptions for those. They
do have some interesting properties, after all.
Change-Id: I7f0922dd14c66c64fe88b55087fd55cb992d33db
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/findunqualified.cpp')
-rw-r--r-- | tools/qmllint/findunqualified.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/qmllint/findunqualified.cpp b/tools/qmllint/findunqualified.cpp index ab7ff80609..6a4071acc7 100644 --- a/tools/qmllint/findunqualified.cpp +++ b/tools/qmllint/findunqualified.cpp @@ -431,15 +431,6 @@ bool FindUnqualifiedIDVisitor::visit(QQmlJS::AST::UiProgram *) // using an empty ScopeTree m_exportedName2Scope[QFileInfo { m_filePath }.baseName()] = {}; - // add QML builtins - m_exportedName2Scope["QtObject"] = {}; // QtObject contains nothing of interest - - ScopeTree *scope = new ScopeTree(ScopeType::QMLScope); - scope->addProperty(MetaProperty {"enabled", "bool", false, false, false, 0}); - scope->addProperty(MetaProperty {"ignoreUnknownSignals", "bool", false, false, false, 0}); - scope->addProperty(MetaProperty {"target", "QObject", false, false, false, 0}); - m_exportedName2Scope["Connections"] = ScopeTree::ConstPtr { scope }; - importDirectory(".", QString()); return true; } @@ -798,9 +789,6 @@ bool FindUnqualifiedIDVisitor::visit(QQmlJS::AST::UiObjectBinding *uiob) m_currentScope->addProperty(prop); enterEnvironment(ScopeType::QMLScope, name); - // there is no typeinfo for Component and QtObject, but they also have no interesting properties - if (name == QLatin1String("Component") || name == QLatin1String("QtObject")) - return true; importExportedNames(prefix, name); return true; } @@ -826,10 +814,6 @@ bool FindUnqualifiedIDVisitor::visit(QQmlJS::AST::UiObjectDefinition *uiod) if (name.isLower()) return false; // Ignore grouped properties for now - // there is no typeinfo for Component - if (name == QLatin1String("Component") || name == QLatin1String("QtObject")) - return true; - importExportedNames(prefix, name); if (name.endsWith("Connections")) { QString target; |