diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:13:41 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-06 03:48:48 +0200 |
commit | 1d7c126b63cbc97bba847f61e7c9ee89b80a390c (patch) | |
tree | 7e3767afd7f1d73a50f07236dc19f49b7cec287d /plugins/rssfeed/rssfeed.cpp | |
parent | 5fae492e67ad058cae62c9e58d33645472157067 (diff) | |
download | ktorrent-1d7c126b63cbc97bba847f61e7c9ee89b80a390c.tar.gz ktorrent-1d7c126b63cbc97bba847f61e7c9ee89b80a390c.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit a90eb215f53c95d81f95b32255098066d90556d9)
Diffstat (limited to 'plugins/rssfeed/rssfeed.cpp')
-rw-r--r-- | plugins/rssfeed/rssfeed.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/rssfeed/rssfeed.cpp b/plugins/rssfeed/rssfeed.cpp index f051f1b..2b70193 100644 --- a/plugins/rssfeed/rssfeed.cpp +++ b/plugins/rssfeed/rssfeed.cpp @@ -223,7 +223,7 @@ namespace kt RssArticle::List::iterator it; for ( it = m_articles.begin(); it != m_articles.end(); ) { - if ((*it).pubDate().daysTo(TQDateTime::tqcurrentDateTime()) > m_articleAge) + if ((*it).pubDate().daysTo(TQDateTime::currentDateTime()) > m_articleAge) { it = m_articles.erase(it); removed = true; @@ -254,12 +254,12 @@ namespace kt feedLoading = true; cleanArticles(); Loader * feedLoader = Loader::create(); - connect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, tqStatus ) ), - this, TQT_SLOT( feedLoaded( Loader *, Document, tqStatus ) ) ); + connect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), + this, TQT_SLOT( feedLoaded( Loader *, Document, Status ) ) ); feedLoader->loadFrom( m_feedUrl, new FileRetriever ); } - void RssFeed::feedLoaded(Loader *feedLoader, Document doc, tqStatus status) + void RssFeed::feedLoaded(Loader *feedLoader, Document doc, Status status) { feedLoading = false; @@ -290,7 +290,7 @@ namespace kt for (int i=doc.articles().count()-1; i>=0; i--) { curArticle = doc.articles()[i]; - if (curArticle.pubDate().daysTo(TQDateTime::tqcurrentDateTime()) < m_articleAge && !m_articles.contains(curArticle)) + if (curArticle.pubDate().daysTo(TQDateTime::currentDateTime()) < m_articleAge && !m_articles.contains(curArticle)) { m_articles.prepend(curArticle); emit scanRssArticle(curArticle); @@ -306,8 +306,8 @@ namespace kt qDebug( "There was and error loading the feed\n"); } - disconnect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, tqStatus ) ), - this, TQT_SLOT( feedLoaded( Loader *, Document, tqStatus ) ) ); + disconnect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), + this, TQT_SLOT( feedLoaded( Loader *, Document, Status ) ) ); feedLoader->deleteLater(); } |