diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-05-02 15:13:49 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-05-02 15:14:36 +0200 |
commit | 44ca7e31ee9365a72cd17ecd335ec4d0161420a9 (patch) | |
tree | c03b4f8263b41986b6f5d4ac9c6e35e371e98a33 /src/qml/qml/qqmlmetatypedata_p.h | |
parent | 580fa7dc88aae23053e44ffa335a15f6af112a20 (diff) | |
parent | 325e6305b418ffe1dfb9a36c2516c6a8a3de5733 (diff) |
Merge remote-tracking branch 'origin/dev' into wip/scenegraphng
Change-Id: Ie2b9472ba925df6e6a74727d44d8179557072105
Diffstat (limited to 'src/qml/qml/qqmlmetatypedata_p.h')
-rw-r--r-- | src/qml/qml/qqmlmetatypedata_p.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/qml/qml/qqmlmetatypedata_p.h b/src/qml/qml/qqmlmetatypedata_p.h index c45bc16280..5239b635ce 100644 --- a/src/qml/qml/qqmlmetatypedata_p.h +++ b/src/qml/qml/qqmlmetatypedata_p.h @@ -134,27 +134,8 @@ struct QQmlMetaTypeData qWarning("%s", message.toUtf8().constData()); } - int attachedPropertyId(const QMetaObject *metaObject, int ownIndex) - { - auto iter = attachedPropertyIds.find(metaObject); - return (iter == attachedPropertyIds.end()) - ? *attachedPropertyIds.insert(metaObject, ownIndex) - : *iter; - } - - bool removeAttachedPropertyId(const QMetaObject *metaObject, int ownIndex) - { - auto iter = attachedPropertyIds.find(metaObject); - if (iter != attachedPropertyIds.end() && *iter == ownIndex) { - attachedPropertyIds.erase(iter); - return true; - } - return false; - } - private: QStringList *m_typeRegistrationFailures = nullptr; - QHash<const QMetaObject *, int> attachedPropertyIds; }; inline uint qHash(const QQmlMetaTypeData::VersionedUri &v) |