diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:13:41 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:13:41 -0600 |
commit | a90eb215f53c95d81f95b32255098066d90556d9 (patch) | |
tree | 333389b0dad6c75eb0f6b5649ec9adcabb18c268 /plugins/rssfeed/rsslinkdownloader.cpp | |
parent | 42a9872891eba166e81cf4f8c062261cc77398f8 (diff) | |
download | ktorrent-a90eb215f53c95d81f95b32255098066d90556d9.tar.gz ktorrent-a90eb215f53c95d81f95b32255098066d90556d9.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'plugins/rssfeed/rsslinkdownloader.cpp')
-rw-r--r-- | plugins/rssfeed/rsslinkdownloader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rssfeed/rsslinkdownloader.cpp b/plugins/rssfeed/rsslinkdownloader.cpp index 972a220..57db6ee 100644 --- a/plugins/rssfeed/rsslinkdownloader.cpp +++ b/plugins/rssfeed/rsslinkdownloader.cpp @@ -59,10 +59,10 @@ namespace kt } - void RssLinkDownloader::processLink(KIO::Job* jobtqStatus) + void RssLinkDownloader::processLink(KIO::Job* jobStatus) { - if (!jobtqStatus->error()) + if (!jobStatus->error()) { //the file downloaded ok - so let's check if it's a torrent KMimeType linkType = *KMimeType::findByContent(curFile->data()); @@ -100,15 +100,15 @@ namespace kt hrefText = TQString("HREF=\"?([^\">< ]*)[\" ]"); hrefText.setCaseSensitive(false); - hrefTags.tqcapturedTexts()[0].find(hrefText); + hrefTags.capturedTexts()[0].find(hrefText); //lets get the captured TQString hrefLink = hrefText.capturedTexts()[1]; - if (hrefLink.tqstartsWith("/")) + if (hrefLink.startsWith("/")) { hrefLink = url.protocol() + "://" + url.host() + hrefLink; } - else if (!hrefLink.tqstartsWith("http://", false)) + else if (!hrefLink.startsWith("http://", false)) { hrefLink = url.url().left(url.url().findRev("/")+1) + hrefLink; } |