diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-10 12:49:33 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-10 19:48:42 +0000 |
commit | 79c170d8bdafb91da30d17a24d00457f2be478b3 (patch) | |
tree | 74ef24f46510e4b26339fa8d21ff1d3fce6f38c2 /sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp | |
parent | 723ed2053aed8b72ae534fcbaea5aaee7f5ea9ba (diff) |
shiboken: Remove some special handling for QObject's
For types, QObjects are equivalent to objects, there is no need to
differentiate. Remove the code trying to find whether a type is a
QObject.
Only AbstractMetaClass needs to know whether it inherits QObject. Add
a simple check recursing down the base classes.
Change-Id: I2365b451c8873f044b06c09b58aff29e2db3c5b7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp b/sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp index fc67ebba5..63434b3a5 100644 --- a/sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp +++ b/sources/shiboken2/ApiExtractor/tests/testabstractmetatype.cpp @@ -85,7 +85,6 @@ void TestAbstractMetaType::testConstCharPtrType() QVERIFY(!rtype->isObject()); QVERIFY(!rtype->isPrimitive()); // const char* differs from char, so it's not considered a primitive type by apiextractor QVERIFY(rtype->isNativePointer()); - QVERIFY(!rtype->isQObject()); QCOMPARE(rtype->referenceType(), NoReference); QVERIFY(!rtype->isValue()); QVERIFY(!rtype->isValuePointer()); @@ -159,7 +158,6 @@ void TestAbstractMetaType::testCharType() QVERIFY(!rtype->isObject()); QVERIFY(rtype->isPrimitive()); QVERIFY(!rtype->isNativePointer()); - QVERIFY(!rtype->isQObject()); QCOMPARE(rtype->referenceType(), NoReference); QVERIFY(!rtype->isValue()); QVERIFY(!rtype->isValuePointer()); |