diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 2a99db3ebc4c211e436f95fde24b5ac6826d0267 (patch) | |
tree | ce2e122a017c12f803ea428a299c7e3cec52c8fe /plugins/search | |
parent | 100dcb6968ca22bfa52836ad55eb4f01225791db (diff) | |
download | ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.tar.gz ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/search')
-rw-r--r-- | plugins/search/searchenginelist.cpp | 6 | ||||
-rw-r--r-- | plugins/search/searchplugin.cpp | 4 | ||||
-rw-r--r-- | plugins/search/searchprefpage.cpp | 10 | ||||
-rw-r--r-- | plugins/search/searchwidget.cpp | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/plugins/search/searchenginelist.cpp b/plugins/search/searchenginelist.cpp index 9e22990..a117f79 100644 --- a/plugins/search/searchenginelist.cpp +++ b/plugins/search/searchenginelist.cpp @@ -51,9 +51,9 @@ namespace kt // replace spaces by %20 TQString name = e.name; - name = name.tqreplace(" ","%20"); + name = name.replace(" ","%20"); TQString u = e.url.prettyURL(); - u = u.tqreplace(" ","%20"); + u = u.replace(" ","%20"); out << name << " " << u << ::endl; i++; } @@ -85,7 +85,7 @@ namespace kt SearchEngine se; se.name = tokens[0]; - se.name = se.name.tqreplace("%20"," "); + se.name = se.name.replace("%20"," "); se.url = KURL::fromPathOrURL(tokens[1]); for(Uint32 i=2; i<tokens.count(); ++i) diff --git a/plugins/search/searchplugin.cpp b/plugins/search/searchplugin.cpp index 8638dfe..9b13680 100644 --- a/plugins/search/searchplugin.cpp +++ b/plugins/search/searchplugin.cpp @@ -102,7 +102,7 @@ namespace kt engine = 0; TQString s_url = sl.getSearchURL(engine).prettyURL(); - s_url.tqreplace("FOOBAR", KURL::encode_string(text), true); + s_url.replace("FOOBAR", KURL::encode_string(text), true); KURL url = KURL::fromPathOrURL(s_url); if(SearchPluginSettings::useDefaultBrowser()) @@ -141,7 +141,7 @@ namespace kt void SearchPlugin::tabCloseRequest(kt::GUIInterface* gui,TQWidget* tab) { - if (searches.tqcontains((SearchWidget*)tab)) + if (searches.contains((SearchWidget*)tab)) { searches.remove((SearchWidget*)tab); gui->removeTabPage(tab); diff --git a/plugins/search/searchprefpage.cpp b/plugins/search/searchprefpage.cpp index e7ee9c3..197dd0f 100644 --- a/plugins/search/searchprefpage.cpp +++ b/plugins/search/searchprefpage.cpp @@ -112,7 +112,7 @@ namespace kt TQListViewItem* item = itr.current(); TQString u = item->text(1); TQString name = item->text(0); - out << name.tqreplace(" ","%20") << " " << u.tqreplace(" ","%20") << endl; + out << name.replace(" ","%20") << " " << u.replace(" ","%20") << endl; itr++; } } @@ -123,7 +123,7 @@ namespace kt { KMessageBox::error(this, i18n("You must enter the search engine's name and URL")); } - else if ( m_engine_url->text().tqcontains("FOOBAR") ) + else if ( m_engine_url->text().contains("FOOBAR") ) { KURL url = KURL::fromPathOrURL(m_engine_url->text()); if ( !url.isValid() ) @@ -132,7 +132,7 @@ namespace kt return; } - if (m_engines->tqfindItem(m_engine_name->text(), 0)) + if (m_engines->findItem(m_engine_name->text(), 0)) { KMessageBox::error(this, i18n("A search engine with the same name already exists. Please use a different name.")); return; } @@ -217,7 +217,7 @@ namespace kt TQStringList tokens = TQStringList::split(" ", line); TQString name = tokens[0]; - name = name.tqreplace("%20"," "); + name = name.replace("%20"," "); KURL url = KURL::fromPathOrURL(tokens[1]); for(Uint32 i=2; i<tokens.count(); ++i) @@ -229,7 +229,7 @@ namespace kt TQMap<TQString,KURL>::iterator i = engines.begin(); while (i != engines.end()) { - TQListViewItem* item = m_engines->tqfindItem(i.key(),0); + TQListViewItem* item = m_engines->findItem(i.key(),0); // if we have found the item, replace it if not make a new one if (item) item->setText(1, i.data().prettyURL()); diff --git a/plugins/search/searchwidget.cpp b/plugins/search/searchwidget.cpp index b7e2627..abe1f39 100644 --- a/plugins/search/searchwidget.cpp +++ b/plugins/search/searchwidget.cpp @@ -172,7 +172,7 @@ namespace kt engine = sbar->m_search_engine->currentItem(); TQString s_url = sl.getSearchURL(engine).prettyURL(); - s_url.tqreplace("FOOBAR", KURL::encode_string(text), true); + s_url.replace("FOOBAR", KURL::encode_string(text), true); KURL url = KURL::fromPathOrURL(s_url); statusBarMsg(i18n("Searching for %1...").tqarg(text)); |