From f0031c949ea6e5e6bc5dfb645e125e12192d425d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 25 Sep 2020 12:39:17 +0200 Subject: TypeDescriptionReader: Don't export C++ names as QML names This is just wrong. The types are not visible in QML under their C++ names. Indeed, this way we reveal a number of places where we confuse the names. Fix those in turn. Furthermore, one of the tests was incorrect. The qmltypes files did not contain an export entry for one of the types, and therefore the type was formally anonymous in QML. However, we did access it via its C++ name. Fix that by exporting the C++ name. Change-Id: I8dd96334076b90fb174daf5b285d622f96495f56 Reviewed-by: Fabian Kosmale --- tests/auto/qml/qmllint/data/Things/plugins.qmltypes | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes index 8b57cadb61..c04961c5ae 100644 --- a/tests/auto/qml/qmllint/data/Things/plugins.qmltypes +++ b/tests/auto/qml/qmllint/data/Things/plugins.qmltypes @@ -4,6 +4,7 @@ Module { Component { name: "SomethingEntirelyStrange" prototype: "QObject" + exports: ["Things/SomethingEntirelyStrange 1.0"] Enum { name: "AnEnum" values: { -- cgit v1.2.3