summaryrefslogtreecommitdiffstats
path: root/juk/tagrenameroptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/tagrenameroptions.cpp')
-rw-r--r--juk/tagrenameroptions.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/juk/tagrenameroptions.cpp b/juk/tagrenameroptions.cpp
index 4f7ceba8..50f7036d 100644
--- a/juk/tagrenameroptions.cpp
+++ b/juk/tagrenameroptions.cpp
@@ -63,18 +63,18 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category)
// Make sure we don't use translated strings for the config file keys.
- QString typeKey = tagTypeText(category.category, false);
+ TQString typeKey = tagTypeText(category.category, false);
KConfigGroup config(KGlobal::config(), "FileRenamer");
if(categoryNum > 0)
- typeKey.append(QString::number(categoryNum));
+ typeKey.append(TQString::number(categoryNum));
- setSuffix(config.readEntry(QString("%1Suffix").arg(typeKey)));
- setPrefix(config.readEntry(QString("%1Prefix").arg(typeKey)));
+ setSuffix(config.readEntry(TQString("%1Suffix").arg(typeKey)));
+ setPrefix(config.readEntry(TQString("%1Prefix").arg(typeKey)));
// Default the emptyAction to ignoring the empty tag.
- const QString emptyAction = config.readEntry(QString("%1EmptyAction").arg(typeKey)).lower();
+ const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").arg(typeKey)).lower();
setEmptyAction(IgnoreEmptyTag);
if(emptyAction == "forceemptyinclude")
@@ -82,12 +82,12 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category)
else if(emptyAction == "usereplacementvalue")
setEmptyAction(UseReplacementValue);
- setEmptyText(config.readEntry(QString("%1EmptyText").arg(typeKey)));
- setTrackWidth(config.readUnsignedNumEntry(QString("%1TrackWidth").arg(typeKey)));
- setDisabled(config.readBoolEntry(QString("%1Disabled").arg(typeKey), disabled));
+ setEmptyText(config.readEntry(TQString("%1EmptyText").arg(typeKey)));
+ setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").arg(typeKey)));
+ setDisabled(config.readBoolEntry(TQString("%1Disabled").arg(typeKey), disabled));
}
-QString TagRenamerOptions::tagTypeText(TagType type, bool translate)
+TQString TagRenamerOptions::tagTypeText(TagType type, bool translate)
{
// These must be declared in the same order that they are defined in
// the TagType enum in test.h. We can dynamically translate these strings,
@@ -111,16 +111,16 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const
{
// Make sure we don't use translated strings for the config file keys.
- QString typeKey = tagTypeText(false);
+ TQString typeKey = tagTypeText(false);
if(categoryNum > 0)
- typeKey.append(QString::number(categoryNum));
+ typeKey.append(TQString::number(categoryNum));
KConfigGroup config(KGlobal::config(), "FileRenamer");
- config.writeEntry(QString("%1Suffix").arg(typeKey), suffix());
- config.writeEntry(QString("%1Prefix").arg(typeKey), prefix());
+ config.writeEntry(TQString("%1Suffix").arg(typeKey), suffix());
+ config.writeEntry(TQString("%1Prefix").arg(typeKey), prefix());
- QString emptyStr;
+ TQString emptyStr;
switch(emptyAction()) {
case ForceEmptyInclude:
@@ -136,17 +136,17 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const
break;
}
- config.writeEntry(QString("%1EmptyAction").arg(typeKey), emptyStr);
- config.writeEntry(QString("%1EmptyText").arg(typeKey), emptyText());
- config.writeEntry(QString("%1Disabled").arg(typeKey), disabled());
+ config.writeEntry(TQString("%1EmptyAction").arg(typeKey), emptyStr);
+ config.writeEntry(TQString("%1EmptyText").arg(typeKey), emptyText());
+ config.writeEntry(TQString("%1Disabled").arg(typeKey), disabled());
if(category() == Track)
- config.writeEntry(QString("%1TrackWidth").arg(typeKey), trackWidth());
+ config.writeEntry(TQString("%1TrackWidth").arg(typeKey), trackWidth());
config.sync();
}
-TagType TagRenamerOptions::tagFromCategoryText(const QString &text, bool translate)
+TagType TagRenamerOptions::tagFromCategoryText(const TQString &text, bool translate)
{
for(unsigned i = StartTag; i < NumTypes; ++i)
if(tagTypeText(static_cast<TagType>(i), translate) == text)