diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-05 11:44:43 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-05 15:54:57 +0100 |
commit | a4ba25117962fab13fa9d71edc252d2d1b59715c (patch) | |
tree | 7a89ab85eb5135af0054134bd1dfeee3caab473a /src/qml/qml/qqmlmetatype.cpp | |
parent | 483d09779c2719415c5ac421074a1af3bd66ca29 (diff) |
Remove QQmlMetaType::isQObject
All callers do have a metatype which they can query instead.
Task-number: QTBUG-82931
Change-Id: I2ff514354a43d677da963d4239333fc66a42df59
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r-- | src/qml/qml/qqmlmetatype.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp index 8369634889..71abce89b1 100644 --- a/src/qml/qml/qqmlmetatype.cpp +++ b/src/qml/qml/qqmlmetatype.cpp @@ -1099,14 +1099,6 @@ QObject *QQmlMetaType::toQObject(const QVariant &v, bool *ok) return *(QObject *const *)v.constData(); } -bool QQmlMetaType::isQObject(int userType) -{ - if (userType == QMetaType::QObjectStar) - return true; - QMetaType type (userType); - return type.flags().testFlag(QMetaType::PointerToQObject); -} - /* Returns the item type for a list of type \a id. */ |