From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- umbrello/umbrello/pluginloader.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'umbrello/umbrello/pluginloader.cpp') diff --git a/umbrello/umbrello/pluginloader.cpp b/umbrello/umbrello/pluginloader.cpp index db79bca1..583b3858 100644 --- a/umbrello/umbrello/pluginloader.cpp +++ b/umbrello/umbrello/pluginloader.cpp @@ -17,7 +17,7 @@ #include "pluginloader.h" // Qt includes -#include +#include // KDE includes #include @@ -53,7 +53,7 @@ PluginLoader::instance() } Plugin * -PluginLoader::loadPlugin(const QString &name) +PluginLoader::loadPlugin(const TQString &name) { KLibrary *lib = NULL; KLibFactory *factory = NULL; @@ -87,7 +87,7 @@ PluginLoader::loadPlugin(const QString &name) // use the factory to create the plugin if(success) { - plugin = dynamic_cast(factory->create((QObject*)0, name.latin1())); + plugin = dynamic_cast(factory->create((TQObject*)0, name.latin1())); if(!plugin) { kdError() << "failed to create a plugin object for " << name << endl; success = false; @@ -117,14 +117,14 @@ PluginLoader::loadPlugin(const QString &name) // reference to it if(success) { plugin->ref(); - connect(plugin, SIGNAL(destroyed(QObject *)), SLOT(slotDestroyed(QObject *))); + connect(plugin, TQT_SIGNAL(destroyed(TQObject *)), TQT_SLOT(slotDestroyed(TQObject *))); } return plugin; } Plugin * -PluginLoader::findPlugin(const QString &name) +PluginLoader::findPlugin(const TQString &name) { Plugin *ret = NULL; PluginMap::iterator it = _plugins.find(name); @@ -135,7 +135,7 @@ PluginLoader::findPlugin(const QString &name) } void -PluginLoader::unloadPlugin(const QString &name) +PluginLoader::unloadPlugin(const TQString &name) { KLibLoader::self()->unloadLibrary(name.latin1()); } @@ -153,7 +153,7 @@ PluginLoader::categories() const } void -PluginLoader::slotDestroyed(QObject *obj) +PluginLoader::slotDestroyed(TQObject *obj) { Plugin *plugin = static_cast(obj); -- cgit v1.2.3