From 70a2c0491d66aa05f9e9e67f8a845f4df84da857 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 14 Aug 2012 11:44:49 +1000 Subject: Refactor singleton type registration code Previously each singleton type was registered as an implicit separate import. This commit changes the code so that these types are treated just like any other type in the registration sense. It also ensures that singleton types are instantiated per-engine. Change-Id: I5c81c4ca5bf65210f7125d74a62a282a21838068 Reviewed-by: Matthew Vogt --- src/qml/qml/qqmlengine_p.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/qml/qml/qqmlengine_p.h') diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index fb7109f507..e014cfffc4 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -220,9 +220,6 @@ public: template inline static void deleteInEngineThread(QQmlEngine *, T *); - // These methods may be called from the loader thread - QQmlMetaType::SingletonInstance *singletonTypeInstance(const QQmlMetaType::SingletonType &module); - // These methods may be called from the loader thread inline QQmlPropertyCache *cache(QObject *obj); inline QQmlPropertyCache *cache(const QMetaObject *); @@ -303,7 +300,6 @@ private: // These members must be protected by a QQmlEnginePrivate::Locker as they are required by // the threaded loader. Only access them through their respective accessor methods. - QHash singletonTypeInstances; QHash propertyCache; QHash, QQmlPropertyCache *> typePropertyCache; QHash m_qmlLists; -- cgit v1.2.3