diff options
author | hjk <hjk@qt.io> | 2018-03-02 10:05:11 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-04-11 06:47:18 +0000 |
commit | 99bcc001990846329f9d430ae23998d8de183e35 (patch) | |
tree | 1008579633bea5b6474b1c8a2960d13f0f272cb6 /doc | |
parent | 6f91ce1c52c45935e3cbb94749d1224defe2c327 (diff) | |
download | qt-creator-99bcc001990846329f9d430ae23998d8de183e35.tar.gz |
ExtensionSystem: Remove PluginManager::getObjectByClassName
Not used anymore inside Qt Creator.
If 3rd party code really relies on this function, it can use the
function locally, or, likely switch to the still supported
getObjectByName or getObject.
Change-Id: I041877b3e0630e6b257055dec5e10baf68c83546
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/plugin-metadata.qdoc | 3 | ||||
-rw-r--r-- | doc/api/pluginmanager.qdoc | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/doc/api/plugin-metadata.qdoc b/doc/api/plugin-metadata.qdoc index bb772f056c..5a6c133526 100644 --- a/doc/api/plugin-metadata.qdoc +++ b/doc/api/plugin-metadata.qdoc @@ -234,8 +234,7 @@ dependency might be loaded or not, the plugin may also not link against the dependency. A common way to access objects from optional dependencies is to get the object from the \l{The Plugin Manager, the Object Pool, and Registered Objects}{global object pool} - via ExtensionSystem::PluginManager::getObjectByName() or - ExtensionSystem::PluginManager::getObjectByClassName(), and use QMetaObject functions to call + via ExtensionSystem::PluginManager::getObjectByName() and use QMetaObject functions to call functions on it. \section3 Test Dependencies diff --git a/doc/api/pluginmanager.qdoc b/doc/api/pluginmanager.qdoc index 4aad91f2c8..03ec4d190e 100644 --- a/doc/api/pluginmanager.qdoc +++ b/doc/api/pluginmanager.qdoc @@ -75,9 +75,6 @@ \row \li getObjectByName(const QString &name) \li Returns one object with the given object name that is registered in the object pool. - \row - \li getObjectByClassName(const QString &className) - \li Returns one object with the given class name that is registered in the object pool. \endtable \table @@ -110,9 +107,7 @@ It is also possible to retrieve an object with a specific object name with \l{ExtensionSystem::PluginManager::getObjectByName()}{getObjectByName()} - (see QObject::objectName()), and an object with a given class name with - \l{ExtensionSystem::PluginManager::getObjectByClassName()}{getObjectByClassName()} - (see QMetaObject::className()). + (see QObject::objectName()). Whenever the state of the object pool changes, a corresponding \l{ExtensionSystem::PluginManager::objectAdded()}{objectAdded()} or |