aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/importNamespace.qml
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-07-25 11:49:31 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2022-07-29 09:20:31 +0200
commit5ffd81567f816523ce09896e2f2608238fb43bb1 (patch)
treeb1ec43743346a0b5704f1bc6a7fe8c3d37e337bd /tests/auto/qml/qmltc/QmltcTests/importNamespace.qml
parent34e7142ed40a4fd2a745c5ffe6f374f3a4a32842 (diff)
qmltc: Fix import namespace code generation
Fix subtle issue where an import namespace would become part of the generated C++ class name without modifications (so with '.'). Preserve the namespace for the time being just to make the generated code more verbose (e.g. consider mixing QQ.Text and ZZ.Text in the same file) Change-Id: I3d409988ae136c272aac6a4eab287a7221f88450 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 38d9bf60ba270cd02d28497252eb64fa60b1f4c9)
Diffstat (limited to 'tests/auto/qml/qmltc/QmltcTests/importNamespace.qml')
-rw-r--r--tests/auto/qml/qmltc/QmltcTests/importNamespace.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltc/QmltcTests/importNamespace.qml b/tests/auto/qml/qmltc/QmltcTests/importNamespace.qml
index 2786356843..5484b9f8a6 100644
--- a/tests/auto/qml/qmltc/QmltcTests/importNamespace.qml
+++ b/tests/auto/qml/qmltc/QmltcTests/importNamespace.qml
@@ -1,4 +1,6 @@
import QtQuick as QQ
QQ.Text {
text: "hello, world"
+
+ QQ.Text {}
}