diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
commit | 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch) | |
tree | 6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/replaygain.cpp | |
parent | 6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff) | |
download | soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip |
TQt4 port soundkonverter
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/replaygain.cpp')
-rwxr-xr-x | src/replaygain.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/replaygain.cpp b/src/replaygain.cpp index f815a21..3e6aabd 100755 --- a/src/replaygain.cpp +++ b/src/replaygain.cpp @@ -4,7 +4,7 @@ #include "logger.h" #include "replaygainpluginloader.h" -#include <qfile.h> +#include <tqfile.h> #include <kprocess.h> #include <klocale.h> @@ -19,10 +19,10 @@ ReplayGain::ReplayGain( Config* _config, Logger* _logger ) ReplayGain::~ReplayGain() {} -bool ReplayGain::apply( QStringList files, const QString& format, KProcess* proc, int logID, Mode mode ) +bool ReplayGain::apply( TQStringList files, const TQString& format, KProcess* proc, int logID, Mode mode ) { - QStringList params; - QString param, paramSplinter; + TQStringList params; + TQString param, paramSplinter; proc->clearArguments(); @@ -32,7 +32,7 @@ bool ReplayGain::apply( QStringList files, const QString& format, KProcess* proc return false; } - param = QString::null; + param = TQString(); if( plugin->replaygain.param ) param.append( " " + plugin->replaygain.param ); if( mode & remove ) { if( plugin->replaygain.remove ) param.append( " " + plugin->replaygain.remove ); @@ -48,29 +48,29 @@ bool ReplayGain::apply( QStringList files, const QString& format, KProcess* proc } } -// if( plugin->replaygain.in_files.find("%p") != -1 ) { -// QString t_str = plugin->replaygain.in_files; -// t_str.replace( "%p", param ); +// if( plugin->replaygain.in_files.tqfind("%p") != -1 ) { +// TQString t_str = plugin->replaygain.in_files; +// t_str.tqreplace( "%p", param ); // param = plugin->replaygain.bin + " " + t_str; // } // else { // param = plugin->replaygain.bin + param + " " + plugin->replaygain.in_files; // } - QString t_str = plugin->replaygain.in_files; - t_str.replace( "%p", param ); + TQString t_str = plugin->replaygain.in_files; + t_str.tqreplace( "%p", param ); param = config->binaries[plugin->replaygain.bin] + " " + t_str; // cosmetic surgery param.simplifyWhiteSpace(); - params = QStringList::split( ' ', param ); + params = TQStringList::split( ' ', param ); - for( QStringList::Iterator it = params.begin(); it != params.end(); ++it ) + for( TQStringList::Iterator it = params.begin(); it != params.end(); ++it ) { paramSplinter = *it; if( paramSplinter == "%i" ) { - for( QStringList::Iterator b = files.begin(); b != files.end(); ++b ) { + for( TQStringList::Iterator b = files.begin(); b != files.end(); ++b ) { *(proc) << KURL::decode_string( *b ); } } @@ -79,12 +79,12 @@ bool ReplayGain::apply( QStringList files, const QString& format, KProcess* proc } } - for( QStringList::Iterator it = files.begin(); it != files.end(); ++it ) + for( TQStringList::Iterator it = files.begin(); it != files.end(); ++it ) { *it = KURL::decode_string( *it ); } - param.replace( "%i", "\""+files.join("\" \"")+"\"" ); + param.tqreplace( "%i", "\""+files.join("\" \"")+"\"" ); logger->log( logID, " " + i18n("Executing") + ": `" + param + "'" ); proc->setPriority( config->data.general.priority ); @@ -93,4 +93,4 @@ bool ReplayGain::apply( QStringList files, const QString& format, KProcess* proc return true; } -//QValueList<float> ReplayGain::getReplayGain( QString file ) {} // obsolete +//TQValueList<float> ReplayGain::getReplayGain( TQString file ) {} // obsolete |