summaryrefslogtreecommitdiffstats
path: root/knewsticker/knewsticker.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit937b2991d8e78166eea904c80ad04d34607017a4 (patch)
tree2accb8161eab09df5d7a5484ea9ea080ad123168 /knewsticker/knewsticker.cpp
parentdba26cb985af370c33d1767037851705cc561726 (diff)
downloadtdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz
tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/knewsticker.cpp')
-rw-r--r--knewsticker/knewsticker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/knewsticker/knewsticker.cpp b/knewsticker/knewsticker.cpp
index 545aba63..a25bc569 100644
--- a/knewsticker/knewsticker.cpp
+++ b/knewsticker/knewsticker.cpp
@@ -429,19 +429,19 @@ void KNewsTickerMenu::populateMenu()
NewsSourceBase::Ptr ns = *nIt;
KPopupMenu *submenu = new KPopupMenu;
- int checkNewsId = submenu->insertItem(lookIcon, i18n("Check News"), TQT_TQOBJECT(this), TQT_SLOT(slotCheckNews(int)), 0, sources.tqfindIndex(ns) + 1000);
- setItemParameter(checkNewsId, sources.tqfindIndex(ns));
+ int checkNewsId = submenu->insertItem(lookIcon, i18n("Check News"), TQT_TQOBJECT(this), TQT_SLOT(slotCheckNews(int)), 0, sources.findIndex(ns) + 1000);
+ setItemParameter(checkNewsId, sources.findIndex(ns));
submenu->insertSeparator();
- if (m_parent->m_pendingNewsUpdates.tqcontains(ns->newsSourceName())) {
+ if (m_parent->m_pendingNewsUpdates.contains(ns->newsSourceName())) {
submenu->insertItem(noArticlesIcon, i18n("Currently Being Updated, No Articles Available"));
} else if (!ns->articles().isEmpty()) {
const Article::List articles = ns->articles();
Article::List::ConstIterator artIt = articles.begin();
for (; artIt != articles.end(); ++artIt) {
Article::Ptr a = *artIt;
- TQString headline = a->headline().tqreplace('&', "&&");
+ TQString headline = a->headline().replace('&', "&&");
int id;
if ( a->read() )
id = submenu->insertItem(oldArticleIcon, headline, this, TQT_SLOT(slotOpenArticle(int)), 0, articleIdx+2000);
@@ -454,7 +454,7 @@ void KNewsTickerMenu::populateMenu()
submenu->insertItem(noArticlesIcon, i18n("No Articles Available"));
}
- insertItem(ns->icon(), ns->newsSourceName().tqreplace('&', "&&"), submenu);
+ insertItem(ns->icon(), ns->newsSourceName().replace('&', "&&"), submenu);
}
if (!m_parent->m_cfg->newsSources().isEmpty())