diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-18 03:28:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-18 03:28:57 +0000 |
commit | 1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6 (patch) | |
tree | 728d80ad748a95d7aa27ee020706dbe985e0e8cb /amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp | |
parent | e9db3e45ed0189bbe18125b120da394a5bc8a832 (diff) | |
download | amarok-1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6.tar.gz amarok-1d9d9f5ce46f0220f7b1b350f5ad4e6dc5079ac6.zip |
Finish TQt4 porting of Amarok
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1228394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp')
-rw-r--r-- | amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp b/amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp index da56aba1..1e59471b 100644 --- a/amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp +++ b/amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp @@ -25,8 +25,8 @@ #include <tqfile.h> -MagnatuneArtistInfoBox::MagnatuneArtistInfoBox( TQWidget *parentWidget, const char *widgetname ) - : KHTMLPart( parentWidget, widgetname ) +MagnatuneArtistInfoBox::MagnatuneArtistInfoBox( TQWidget *tqparentWidget, const char *widgetname ) + : KHTMLPart( tqparentWidget, widgetname ) {} @@ -56,7 +56,7 @@ MagnatuneArtistInfoBox::displayAlbumInfo( MagnatuneAlbum *album ) const MagnatuneArtist artist = MagnatuneDatabaseHandler::instance()->getArtistById( album->getArtistId() ); const TQString artistName = artist.getName(); - TQString infoHtml = "<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" " + TQString infoHtml = "<HTML><HEAD><META HTTP-ETQUIV=\"Content-Type\" " "CONTENT=\"text/html; charset=iso-8859-1\"></HEAD><BODY>"; infoHtml += "<div align=\"center\"><strong>"; @@ -115,25 +115,25 @@ MagnatuneArtistInfoBox::extractArtistInfo( TQString artistPage ) TQString trimmedHtml; - int sectionStart = artistPage.find( "<!-- ARTISTBODY -->" ); - int sectionEnd = artistPage.find( "<!-- /ARTISTBODY -->", sectionStart ); + int sectionStart = artistPage.tqfind( "<!-- ARTISTBODY -->" ); + int sectionEnd = artistPage.tqfind( "<!-- /ARTISTBODY -->", sectionStart ); trimmedHtml = artistPage.mid( sectionStart, sectionEnd - sectionStart ); - int buyStartIndex = trimmedHtml.find( "<!-- PURCHASE -->" ); + int buyStartIndex = trimmedHtml.tqfind( "<!-- PURCHASE -->" ); int buyEndIndex; //we are going to integrate the buying of music (I hope) so remove these links while ( buyStartIndex != -1 ) { - buyEndIndex = trimmedHtml.find( "<!-- /PURCHASE -->", buyStartIndex ) + 18; + buyEndIndex = trimmedHtml.tqfind( "<!-- /PURCHASE -->", buyStartIndex ) + 18; trimmedHtml.remove( buyStartIndex, buyEndIndex - buyStartIndex ); - buyStartIndex = trimmedHtml.find( "<!-- PURCHASE -->", buyStartIndex ); + buyStartIndex = trimmedHtml.tqfind( "<!-- PURCHASE -->", buyStartIndex ); } - TQString infoHtml = "<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" " + TQString infoHtml = "<HTML><HEAD><META HTTP-ETQUIV=\"Content-Type\" " "CONTENT=\"text/html; charset=iso-8859-1\"></HEAD><BODY>"; infoHtml += trimmedHtml; |