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/searchprefpage.cpp | |
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/searchprefpage.cpp')
-rw-r--r-- | plugins/search/searchprefpage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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()); |