summaryrefslogtreecommitdiffstats
path: root/kommander/pluginmanager/pluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/pluginmanager/pluginmanager.cpp')
-rw-r--r--kommander/pluginmanager/pluginmanager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kommander/pluginmanager/pluginmanager.cpp b/kommander/pluginmanager/pluginmanager.cpp
index e9301b26..79da4d81 100644
--- a/kommander/pluginmanager/pluginmanager.cpp
+++ b/kommander/pluginmanager/pluginmanager.cpp
@@ -22,7 +22,7 @@
PluginManager::PluginManager()
{
m_cfg = new KConfig("kommanderrc");
- m_list = new QStringList(m_cfg->readListEntry("plugins"));
+ m_list = new TQStringList(m_cfg->readListEntry("plugins"));
}
PluginManager::~PluginManager()
@@ -37,14 +37,14 @@ int PluginManager::count() const
return m_list->count();
}
-QString PluginManager::item(int i) const
+TQString PluginManager::item(int i) const
{
return (*m_list)[i];
}
-bool PluginManager::add(const QString& plugin, bool)
+bool PluginManager::add(const TQString& plugin, bool)
{
- QString plugName= libraryName(plugin);
+ TQString plugName= libraryName(plugin);
if (plugName.isNull())
return false;
if (m_list->contains(plugName))
@@ -53,7 +53,7 @@ bool PluginManager::add(const QString& plugin, bool)
return true;
}
-bool PluginManager::remove(const QString& plugin)
+bool PluginManager::remove(const TQString& plugin)
{
if (!m_list->contains(plugin))
return false;
@@ -63,8 +63,8 @@ bool PluginManager::remove(const QString& plugin)
int PluginManager::verify()
{
- QStringList verified;
- for (QStringList::ConstIterator it = m_list->begin(); it != m_list->end(); ++it)
+ TQStringList verified;
+ for (TQStringList::ConstIterator it = m_list->begin(); it != m_list->end(); ++it)
if (!libraryName(*it).isNull())
verified.append(*it);
int removed = count() - verified.count();
@@ -73,16 +73,16 @@ int PluginManager::verify()
return removed;
}
-QString PluginManager::libraryName(const QString& plugin) const
+TQString PluginManager::libraryName(const TQString& plugin) const
{
KLibrary *l = KLibLoader::self()->library(plugin.latin1());
- QString libname;
+ TQString libname;
if (l && l->hasSymbol("kommander_plugin"))
libname = l->fileName();
return libname;
}
-QStringList PluginManager::items() const
+TQStringList PluginManager::items() const
{
return (*m_list);
}