diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-05 10:36:19 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-05 15:54:50 +0100 |
commit | a7deb047d14170cf16160c748150471456e04af4 (patch) | |
tree | aaf7913b60ffb6f8ba1830d620b8d68641d05741 /src/qml/qml/qqmlengine_p.h | |
parent | a9efc8e9dda35c1844c990991cea14a74ddeaf81 (diff) |
Simplify QQmlPropertyData::flagsForProperty; remove typeCategory
We do not need to call QQmlMetaType::typeCategory. The information
whether a type is a QObject or a QML list type is already stored in the
metaobject, and checked in the earlier if branches. Thus, typeCategory
could only ever return Unknown.
As this removes the only real caller of QQmlMetaType::typeCategory, we
can remove the function. QQmlEnginePrivate::typeCategory also called it,
but wasn't called itself (and is now also removed) .
Change-Id: Iea6055ba44de4d71334f40895e7ce85c3230f3d9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r-- | src/qml/qml/qqmlengine_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index 1ea5f3bedc..d085d30887 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -236,7 +236,6 @@ public: // These methods may be called from the loader thread bool isQObject(int); - QQmlMetaType::TypeCategory typeCategory(int) const; QQmlMetaObject rawMetaObjectForType(int) const; QQmlMetaObject metaObjectForType(int) const; QQmlPropertyCache *propertyCacheForType(int); |