aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-03-02 10:05:11 +0100
committerhjk <hjk@qt.io>2018-04-11 06:47:18 +0000
commit99bcc001990846329f9d430ae23998d8de183e35 (patch)
tree1008579633bea5b6474b1c8a2960d13f0f272cb6 /tests/auto
parent6f91ce1c52c45935e3cbb94749d1224defe2c327 (diff)
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 'tests/auto')
-rw-r--r--tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp b/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
index 8d981e4751..28696e7349 100644
--- a/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
+++ b/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
@@ -139,10 +139,8 @@ void tst_PluginManager::getObject()
object2b->setObjectName(objectName);
m_pm->addObject(object2);
QCOMPARE(m_pm->getObject<MyClass11>(), static_cast<MyClass11 *>(0));
- QCOMPARE(m_pm->getObjectByClassName("MyClass11"), static_cast<QObject*>(0));
QCOMPARE(m_pm->getObject<MyClass1>(), static_cast<MyClass1 *>(0));
QCOMPARE(m_pm->getObject<MyClass2>(), object2);
- QCOMPARE(m_pm->getObjectByClassName("MyClass2"), object2);
m_pm->addObject(object11);
QCOMPARE(m_pm->getObject<MyClass11>(), object11);
QCOMPARE(m_pm->getObject<MyClass1>(), qobject_cast<MyClass1 *>(object11));