From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/pluginmanager/pluginmanager.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kommander/pluginmanager/pluginmanager.cpp') 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); } -- cgit v1.2.1