diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kaudiocreator/job.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaudiocreator/job.cpp')
-rw-r--r-- | kaudiocreator/job.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kaudiocreator/job.cpp b/kaudiocreator/job.cpp index 44a05eee..740aeb5e 100644 --- a/kaudiocreator/job.cpp +++ b/kaudiocreator/job.cpp @@ -18,20 +18,20 @@ #include "job.h" #include <kmacroexpander.h> -#include <qregexp.h> +#include <tqregexp.h> /** * A helper function to replace %X with the stuff in the album. * if quote is true then put "" around the %X */ -QString Job::replaceSpecialChars(const QString &string, bool quote, QMap<QString, QString> _map){ - QMap<QString,QString> map = _map; +TQString Job::replaceSpecialChars(const TQString &string, bool quote, TQMap<TQString, TQString> _map){ + TQMap<TQString,TQString> map = _map; map.insert("title", track_title); map.insert("artist", track_artist); - map.insert("number", QString().sprintf("%02d", track)); + map.insert("number", TQString().sprintf("%02d", track)); map.insert("comment", track_comment); - map.insert("year", QString::number(year)); + map.insert("year", TQString::number(year)); map.insert("genre", genre); map.insert("albumtitle", album); @@ -44,15 +44,15 @@ QString Job::replaceSpecialChars(const QString &string, bool quote, QMap<QString return (KMacroExpander::expandMacros(string, map)); } -void Job::fix(const QString &in, const QString &out){ - track_title.replace( QRegExp(in), out ); - track_artist.replace( QRegExp(in), out ); - track_comment.replace( QRegExp(in), out ); +void Job::fix(const TQString &in, const TQString &out){ + track_title.replace( TQRegExp(in), out ); + track_artist.replace( TQRegExp(in), out ); + track_comment.replace( TQRegExp(in), out ); // year // track - genre.replace( QRegExp(in), out ); - album.replace( QRegExp(in), out ); - comment.replace( QRegExp(in), out ); - group.replace( QRegExp(in), out ); + genre.replace( TQRegExp(in), out ); + album.replace( TQRegExp(in), out ); + comment.replace( TQRegExp(in), out ); + group.replace( TQRegExp(in), out ); } |