diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /superkaramba/src/noatunsensor.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/noatunsensor.cpp')
-rw-r--r-- | superkaramba/src/noatunsensor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/superkaramba/src/noatunsensor.cpp b/superkaramba/src/noatunsensor.cpp index 57f25f1..d948bc9 100644 --- a/superkaramba/src/noatunsensor.cpp +++ b/superkaramba/src/noatunsensor.cpp @@ -77,17 +77,17 @@ void NoatunSensor::update() else { - format.replace( TQRegExp("%title", false), title ); - format.replace( TQRegExp("%id", false), noatunID ); + format.tqreplace( TQRegExp("%title", false), title ); + format.tqreplace( TQRegExp("%id", false), noatunID ); - format.replace( TQRegExp("%length", false), TQTime( 0,0,0 ). + format.tqreplace( TQRegExp("%length", false), TQTime( 0,0,0 ). addMSecs( songLength ) .toString( "h:mm:ss" ) ); - format.replace( TQRegExp("%time", false), TQTime( 0,0,0 ). + format.tqreplace( TQRegExp("%time", false), TQTime( 0,0,0 ). addMSecs( currentTime ) .toString( "h:mm:ss" ) ); - format.replace( TQRegExp("%remain", false), TQTime( 0,0,0 ). + format.tqreplace( TQRegExp("%remain", false), TQTime( 0,0,0 ). addMSecs( songLength ) .addMSecs(-currentTime ) .toString( "h:mm:ss" ) ); @@ -144,11 +144,11 @@ TQString NoatunSensor::getTitle() else { TQDataStream reply(replyData, IO_ReadOnly); - if (replyType == "TQString") + if (replyType == TQSTRING_OBJECT_NAME_STRING) { reply >> result; - result.replace( TQRegExp("_")," " ); - result.replace( TQRegExp(".mp3$"),"" ); + result.tqreplace( TQRegExp("_")," " ); + result.tqreplace( TQRegExp(".mp3$"),"" ); } else |