qtdeclarative/tests/auto/qml/qmlcppcodegen
Ulf Hermann 0a8fe228f6 QmlCompiler: Prevent lookup of value type where we need an object type
With a particular nefarious combination of Q_GADGET and inheritance from
QObject you can make QmlCompiler believe a type is a value type even
though it is actually an object type. We never want to touch such a
thing.

There was a safe guard against this when looking up the type from the
scope, but by putting it in a type namespace you could circumvent it.
Refactor the code to apply to both cases the same way.

Pick-to: 6.2 6.3 6.4
Fixes: QTBUG-104556
Fixes: QTBUG-105608
Change-Id: I8a690e2b6f78fcaba0911a93504cde0d2c7dde0d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-08-30 18:53:01 +02:00
..
data QmlCompiler: Prevent lookup of value type where we need an object type 2022-08-30 18:53:01 +02:00
CMakeLists.txt QmlCompiler: Implement remaining operators 2022-08-29 13:21:06 +02:00
tst_qmlcppcodegen.cpp QmlCompiler: Implement remaining operators 2022-08-29 13:21:06 +02:00