summaryrefslogtreecommitdiffstats
path: root/juk/categoryreaderinterface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/categoryreaderinterface.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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.cpp14
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;
}