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 /juk/categoryreaderinterface.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 'juk/categoryreaderinterface.cpp')
-rw-r--r-- | juk/categoryreaderinterface.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/juk/categoryreaderinterface.cpp b/juk/categoryreaderinterface.cpp index f9f73103..3844fc21 100644 --- a/juk/categoryreaderinterface.cpp +++ b/juk/categoryreaderinterface.cpp @@ -13,14 +13,14 @@ * * ***************************************************************************/ -#include <qstring.h> +#include <tqstring.h> #include "filerenameroptions.h" #include "categoryreaderinterface.h" -QString CategoryReaderInterface::value(const CategoryID &category) const +TQString CategoryReaderInterface::value(const CategoryID &category) const { - QString value = categoryValue(category.category).stripWhiteSpace(); + TQString value = categoryValue(category.category).stripWhiteSpace(); if(category.category == Track) value = fixupTrack(value, category.categoryNumber).stripWhiteSpace(); @@ -41,22 +41,22 @@ bool CategoryReaderInterface::isEmpty(TagType category) const return categoryValue(category).isEmpty(); } -QString CategoryReaderInterface::fixupTrack(const QString &track, unsigned categoryNum) const +TQString CategoryReaderInterface::fixupTrack(const TQString &track, unsigned categoryNum) const { - QString str(track); + TQString str(track); CategoryID trackId(Track, categoryNum); if(track == "0") { if(emptyAction(trackId) == TagRenamerOptions::UseReplacementValue) str = emptyText(trackId); else - return QString::null; + return TQString::null; } unsigned minimumWidth = trackWidth(categoryNum); if(str.length() < minimumWidth) { - QString prefix; + TQString prefix; prefix.fill('0', minimumWidth - str.length()); return prefix + str; } |