diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-12-21 15:47:52 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-12-24 07:53:46 +0000 |
commit | bd0695e2efab5ad65a7fbcb4f8b802ea81ddc312 (patch) | |
tree | 0e219e9eafdeca27eb4c177be32aa37f6f029ffe /tools/qmltc | |
parent | e48ffb5ec9f62856a5fd247a69ffc7e4c2f1f40b (diff) |
qmltc: Drop duplicate "QQmlContextData::" in context set generation
qmltc generates QQmlContextData::QQmlContextData::DocumentRoot so
one "QQmlContextData::" is not needed
Change-Id: Ice2bb1c221996f04d8107f6f6caec7f52aad3735
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
(cherry picked from commit ea829498f4ca70d974058eb6eaa2e9cbcdf93198)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tools/qmltc')
-rw-r--r-- | tools/qmltc/prototype/codegenerator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/qmltc/prototype/codegenerator.cpp b/tools/qmltc/prototype/codegenerator.cpp index ffe49c77ee..bb72fa69d7 100644 --- a/tools/qmltc/prototype/codegenerator.cpp +++ b/tools/qmltc/prototype/codegenerator.cpp @@ -540,8 +540,7 @@ void CodeGenerator::compileObject(QQmlJSAotObject &compiled, const CodeGenObject } else { // !baseTypeIsCompiledQml || documentRoot // set up current context compiled.init.body << u"// 2. normal flow, set context for this object"_qs; - const QString enumValue = documentRoot ? u"QQmlContextData::DocumentRoot"_qs - : u"QQmlContextData::OrdinaryObject"_qs; + const QString enumValue = documentRoot ? u"DocumentRoot"_qs : u"OrdinaryObject"_qs; compiled.init.body << QStringLiteral( "%1->setInternalContext(this, context, QQmlContextData::%2);") .arg(u"QQmlEnginePrivate::get(engine)"_qs, enumValue); |