summaryrefslogtreecommitdiffstats
path: root/kmymoney2/plugins/pluginloader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/plugins/pluginloader.cpp
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/plugins/pluginloader.cpp')
-rw-r--r--kmymoney2/plugins/pluginloader.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmymoney2/plugins/pluginloader.cpp b/kmymoney2/plugins/pluginloader.cpp
index 0201337..49f9dcc 100644
--- a/kmymoney2/plugins/pluginloader.cpp
+++ b/kmymoney2/plugins/pluginloader.cpp
@@ -18,9 +18,9 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -48,24 +48,24 @@ namespace KMyMoneyPlugin {
//---------------------------------------------------------------------
static PluginLoader* s_instance = 0;
-typedef QMap<QString, Plugin*> PluginsMap;
+typedef TQMap<TQString, Plugin*> PluginsMap;
struct PluginLoader::Private
{
- QObject* m_parent;
+ TQObject* m_parent;
KPluginInfo::List m_pluginList;
KPluginSelector* m_pluginSelector;
PluginsMap m_loadedPlugins;
};
-PluginLoader::PluginLoader(QObject* parent)
+PluginLoader::PluginLoader(TQObject* tqparent)
{
Q_ASSERT( s_instance == 0 );
s_instance = this;
d = new Private;
- d->m_parent = parent;
+ d->m_parent = tqparent;
KTrader::OfferList offers = KTrader::self()->query("KMyMoneyPlugin");
d->m_pluginList = KPluginInfo::fromServices(offers);
@@ -75,8 +75,8 @@ PluginLoader::PluginLoader(QObject* parent)
d->m_pluginSelector->addPlugins(d->m_pluginList);
d->m_pluginSelector->load();
- connect(d->m_pluginSelector, SIGNAL(changed(bool)), this, SLOT(changed()));
- connect(d->m_pluginSelector, SIGNAL(configCommitted(const QCString &)), this, SLOT(changedConfigOfPlugin(const QCString &)));
+ connect(d->m_pluginSelector, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(changed()));
+ connect(d->m_pluginSelector, TQT_SIGNAL(configCommitted(const TQCString &)), this, TQT_SLOT(changedConfigOfPlugin(const TQCString &)));
}
PluginLoader::~PluginLoader()
@@ -100,7 +100,7 @@ void PluginLoader::loadPlugin(KPluginInfo* info)
KService::Ptr service = info->service();
int error = 0;
Plugin* plugin = KParts::ComponentFactory
- ::createInstanceFromService<Plugin>(service, d->m_parent, info->name().utf8(), QStringList(), &error);
+ ::createInstanceFromService<Plugin>(service, d->m_parent, info->name().utf8(), TQStringList(), &error);
if (plugin) {
kdDebug() << "KMyMoneyPlugin::PluginLoader: Loaded plugin " << plugin->name() << endl;
d->m_loadedPlugins.insert(info->name(), plugin);
@@ -131,16 +131,16 @@ void PluginLoader::changed()
loadPlugins();
}
-void PluginLoader::changedConfigOfPlugin(const QCString & name)
+void PluginLoader::changedConfigOfPlugin(const TQCString & name)
{
- PluginsMap::iterator itPlugin = d->m_loadedPlugins.find(QString(name));
+ PluginsMap::iterator itPlugin = d->m_loadedPlugins.tqfind(TQString(name));
if (itPlugin != d->m_loadedPlugins.end())
configChanged(*itPlugin);
}
Plugin* PluginLoader::getPluginFromInfo(KPluginInfo* info)
{
- PluginsMap::iterator itPlugin = d->m_loadedPlugins.find(info->name());
+ PluginsMap::iterator itPlugin = d->m_loadedPlugins.tqfind(info->name());
if (itPlugin != d->m_loadedPlugins.end())
return *itPlugin;
else