From 2620ed602b1dc0a7bc3c3135ee12361b1af25405 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kradio3/src/pluginmanager.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kradio3/src/pluginmanager.cpp') diff --git a/kradio3/src/pluginmanager.cpp b/kradio3/src/pluginmanager.cpp index 286b588..6576c84 100644 --- a/kradio3/src/pluginmanager.cpp +++ b/kradio3/src/pluginmanager.cpp @@ -116,7 +116,7 @@ void PluginManager::addWidgetPluginMenuItems(TQMenuData *menu, TQMap &map, bool shown) const { - if (!b || !map.tqcontains(b)) + if (!b || !map.contains(b)) return; const TQString &name = b->description(); @@ -211,7 +211,7 @@ void PluginManager::insertPlugin(PluginBase *p) void PluginManager::deletePlugin(PluginBase *p) { - if (p && m_plugins.tqcontains(p)) { + if (p && m_plugins.contains(p)) { removePlugin(p); delete p; } @@ -220,7 +220,7 @@ void PluginManager::deletePlugin(PluginBase *p) void PluginManager::removePlugin(PluginBase *p) { - if (p && m_plugins.tqcontains(p)) { + if (p && m_plugins.contains(p)) { for (PluginIterator it(m_plugins); it.current(); ++it) { if (it.current() != p) { @@ -236,12 +236,12 @@ void PluginManager::removePlugin(PluginBase *p) // remove config page from config dialog, only chance is to delete it // plugin will be notified automatically (mechanism implemented by // PluginBase) - while (TQFrame *f = m_configPageFrames.tqfind(p)) { + while (TQFrame *f = m_configPageFrames.find(p)) { m_configPageFrames.remove(p); m_configPages.remove(p); delete f; } - while (TQFrame *f = m_aboutPageFrames.tqfind(p)) { + while (TQFrame *f = m_aboutPageFrames.find(p)) { m_aboutPageFrames.remove(p); m_aboutPages.remove(p); delete f; @@ -265,7 +265,7 @@ void PluginManager::removePlugin(PluginBase *p) void PluginManager::addConfigurationPage (PluginBase *forWhom, const ConfigPageInfo &info) { - if (!forWhom || !m_plugins.tqcontainsRef(forWhom) || !info.page) + if (!forWhom || !m_plugins.containsRef(forWhom) || !info.page) return; TQFrame *f = addConfigurationPage(info); @@ -362,7 +362,7 @@ void PluginManager::addAboutPage (PluginBase *forWhom, if (!m_aboutDialog) createAboutDialog(i18n(m_aboutDialogTitle.ascii())); - if ( !forWhom || !m_plugins.tqcontainsRef(forWhom) + if ( !forWhom || !m_plugins.containsRef(forWhom) || !m_aboutDialog || !info.page) return; @@ -419,7 +419,7 @@ void PluginManager::saveState (KConfig *c) const TQString class_name = it.current()->pluginClassName(); TQString object_name = it.current()->name(); if (class_name.length() && object_name.length() && - m_Application->getPluginClasses().tqcontains(class_name)) + m_Application->getPluginClasses().contains(class_name)) { ++n; c->writeEntry("plugin_class_" + TQString::number(n), class_name); -- cgit v1.2.1