diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-25 16:04:37 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-25 23:17:16 +0200 |
commit | a298775dffb7800b14f74a1b435944b7294728b5 (patch) | |
tree | 0ce7bf5bd585f52177d8981d78304a7c0688a256 /src/qml/qml/qqmlmetatype.cpp | |
parent | 23dd5db4f1f612e962b408c26e9cfd276a5348a3 (diff) |
Remove deprecated functions involving attached property IDs
[ChangeLog][QML] The deprecated functions qmlAttachedPropertiesObjectById
and qmlAttachedPropertiesObject(int *, const QObject *,
const QMetaObject *, bool) have been removed. Use the
qmlAttachedPropertiesObject(QObject *, QQmlAttachedPropertiesFunc, bool)
overload of qmlAttachedPropertiesObject instead.
Change-Id: I6bc8315557733dc2f51b2ffdebeec51873b74b2b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r-- | src/qml/qml/qqmlmetatype.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp index ad67b8abc0..9b0df3c5c4 100644 --- a/src/qml/qml/qqmlmetatype.cpp +++ b/src/qml/qml/qqmlmetatype.cpp @@ -1034,30 +1034,6 @@ int QQmlMetaType::listType(int id) return 0; } -#if QT_DEPRECATED_SINCE(5, 14) -int QQmlMetaType::attachedPropertiesFuncId(QQmlEnginePrivate *engine, const QMetaObject *mo) -{ - QQmlMetaTypeDataPtr data; - - for (auto it = data->metaObjectToType.constFind(mo), end = data->metaObjectToType.constEnd(); - it != end && it.key() == mo; ++it) { - if (const QQmlTypePrivate *type = it.value()) { - if (const QQmlTypePrivate *base = type->attachedPropertiesBase(engine)) - return base->index; - } - } - return -1; -} - -QQmlAttachedPropertiesFunc QQmlMetaType::attachedPropertiesFuncById(QQmlEnginePrivate *engine, int id) -{ - if (id < 0) - return nullptr; - QQmlMetaTypeDataPtr data; - return data->types.at(id).attachedPropertiesFunction(engine); -} -#endif - QQmlAttachedPropertiesFunc QQmlMetaType::attachedPropertiesFunc(QQmlEnginePrivate *engine, const QMetaObject *mo) { |