summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/nowlistening/nowlisteningplugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit937b2991d8e78166eea904c80ad04d34607017a4 (patch)
tree2accb8161eab09df5d7a5484ea9ea080ad123168 /kopete/plugins/nowlistening/nowlisteningplugin.cpp
parentdba26cb985af370c33d1767037851705cc561726 (diff)
downloadtdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz
tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip
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
Diffstat (limited to 'kopete/plugins/nowlistening/nowlisteningplugin.cpp')
-rw-r--r--kopete/plugins/nowlistening/nowlisteningplugin.cpp24
1 files changed, 12 insertions, 12 deletions
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