From 937b2991d8e78166eea904c80ad04d34607017a4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- kopete/plugins/nowlistening/nowlisteningplugin.cpp | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kopete/plugins/nowlistening/nowlisteningplugin.cpp') diff --git a/kopete/plugins/nowlistening/nowlisteningplugin.cpp b/kopete/plugins/nowlistening/nowlisteningplugin.cpp index ca9c9316..b72df2a7 100644 --- a/kopete/plugins/nowlistening/nowlisteningplugin.cpp +++ b/kopete/plugins/nowlistening/nowlisteningplugin.cpp @@ -205,7 +205,7 @@ void NowListeningPlugin::slotOutgoingMessage(Kopete::Message& msg) for( Kopete::Contact *c = dest.first() ; c ; c = dest.next() ) { const TQString& cId = c->contactId(); - if( 0 == d->m_musicSentTo.tqcontains( cId ) ) + if( 0 == d->m_musicSentTo.contains( cId ) ) { mustSendAnyway = true; @@ -318,7 +318,7 @@ void NowListeningPlugin::slotAdvertCurrentMusic() { if(statusSong.search(advert) != -1) { - advert = advert.tqreplace(statusSong, TQString(" (%1)").tqarg(mediaPlayerAdvert(false)) ); + advert = advert.replace(statusSong, TQString(" (%1)").tqarg(mediaPlayerAdvert(false)) ); } else { @@ -327,7 +327,7 @@ void NowListeningPlugin::slotAdvertCurrentMusic() } else { - advert = advert.tqreplace(statusSong, ""); + advert = advert.replace(statusSong, ""); } } else @@ -432,7 +432,7 @@ TQString NowListeningPlugin::substDepthFirst( NLMediaPlayer *player, // recursively replace contents of matching () TQString substitution = substDepthFirst( player, in.mid( i + 1, j - i - 1), true ) ; - in.tqreplace ( i, j - i + 1, substitution ); + in.replace ( i, j - i + 1, substitution ); // perform substitution and return the result i = i + substitution.length() - 1; break; @@ -446,34 +446,34 @@ TQString NowListeningPlugin::substDepthFirst( NLMediaPlayer *player, // no () found, perform substitution! // get each string (to) to substitute for (from) bool done = false; - if ( in.tqcontains ( "%track" ) ) + if ( in.contains ( "%track" ) ) { if ( track.isEmpty() ) track = i18n("Unknown track"); - in.tqreplace( "%track", track ); + in.replace( "%track", track ); done = true; } - if ( in.tqcontains ( "%artist" ) && !artist.isEmpty() ) + if ( in.contains ( "%artist" ) && !artist.isEmpty() ) { if ( artist.isEmpty() ) artist = i18n("Unknown artist"); - in.tqreplace( "%artist", artist ); + in.replace( "%artist", artist ); done = true; } - if ( in.tqcontains ( "%album" ) && !album.isEmpty() ) + if ( in.contains ( "%album" ) && !album.isEmpty() ) { if ( album.isEmpty() ) album = i18n("Unknown album"); - in.tqreplace( "%album", album ); + in.replace( "%album", album ); done = true; } - if ( in.tqcontains ( "%player" ) && !playerName.isEmpty() ) + if ( in.contains ( "%player" ) && !playerName.isEmpty() ) { if ( playerName.isEmpty() ) playerName = i18n("Unknown player"); - in.tqreplace( "%player", playerName ); + in.replace( "%player", playerName ); done = true; } // make whether we return anything dependent on whether we -- cgit v1.2.1