diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-02 10:27:10 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-04 14:15:16 +0000 |
commit | 34dff74b75b818072882594e518faed9498b1f4d (patch) | |
tree | 23a3b9628e68445aa79b142e5f5fc8ccc9e6325c /tests/auto/qml | |
parent | 21ffde85a1b4592d24785a3ba82817de05486060 (diff) |
Property Cache: Use related meta objects to check for "enums"
If a method of a QObject-derived class takes a "foreign" enum as a
parameter, the enum's meta object is added to the "relatedMetaObjects"
property. Therefore, we can actually determine if something is a named
enumerator, even if we initially don't have its metaobject.
This way we don't need to detect these types by their type flags anymore
and therefore we can remove the band aid added in commit
fd9d88e3a9f24eb84d029fb9324b4f03ae58ffeb.
Change-Id: Id602d2b6f688a12b5addef855f6a16920b4e6549
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/testtypes.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.h b/tests/auto/qml/qqmlecmascript/testtypes.h index 96525f3a44..8d89df31db 100644 --- a/tests/auto/qml/qqmlecmascript/testtypes.h +++ b/tests/auto/qml/qqmlecmascript/testtypes.h @@ -179,7 +179,6 @@ public: Q_INVOKABLE MyQmlObject *returnme() { return this; } struct MyType { - MyType() {} int value; }; struct MyOtherType { |