summaryrefslogtreecommitdiffstats
path: root/knewsticker/knewsticker.cpp
diff options
context:
space:
mode:
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())