From 83fbc82a101309e171089f0d5ed080f82a367345 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:49:11 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- juk/tagrenameroptions.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'juk/tagrenameroptions.cpp') diff --git a/juk/tagrenameroptions.cpp b/juk/tagrenameroptions.cpp index fc97ac8e..c25f3dd1 100644 --- a/juk/tagrenameroptions.cpp +++ b/juk/tagrenameroptions.cpp @@ -69,12 +69,12 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category) if(categoryNum > 0) typeKey.append(TQString::number(categoryNum)); - setSuffix(config.readEntry(TQString("%1Suffix").tqarg(typeKey))); - setPrefix(config.readEntry(TQString("%1Prefix").tqarg(typeKey))); + setSuffix(config.readEntry(TQString("%1Suffix").arg(typeKey))); + setPrefix(config.readEntry(TQString("%1Prefix").arg(typeKey))); // Default the emptyAction to ignoring the empty tag. - const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").tqarg(typeKey)).lower(); + const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").arg(typeKey)).lower(); setEmptyAction(IgnoreEmptyTag); if(emptyAction == "forceemptyinclude") @@ -82,9 +82,9 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category) else if(emptyAction == "usereplacementvalue") setEmptyAction(UseReplacementValue); - setEmptyText(config.readEntry(TQString("%1EmptyText").tqarg(typeKey))); - setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").tqarg(typeKey))); - setDisabled(config.readBoolEntry(TQString("%1Disabled").tqarg(typeKey), disabled)); + setEmptyText(config.readEntry(TQString("%1EmptyText").arg(typeKey))); + setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").arg(typeKey))); + setDisabled(config.readBoolEntry(TQString("%1Disabled").arg(typeKey), disabled)); } TQString TagRenamerOptions::tagTypeText(TagType type, bool translate) @@ -117,8 +117,8 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const KConfigGroup config(KGlobal::config(), "FileRenamer"); - config.writeEntry(TQString("%1Suffix").tqarg(typeKey), suffix()); - config.writeEntry(TQString("%1Prefix").tqarg(typeKey), prefix()); + config.writeEntry(TQString("%1Suffix").arg(typeKey), suffix()); + config.writeEntry(TQString("%1Prefix").arg(typeKey), prefix()); TQString emptyStr; @@ -136,12 +136,12 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const break; } - config.writeEntry(TQString("%1EmptyAction").tqarg(typeKey), emptyStr); - config.writeEntry(TQString("%1EmptyText").tqarg(typeKey), emptyText()); - config.writeEntry(TQString("%1Disabled").tqarg(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(TQString("%1TrackWidth").tqarg(typeKey), trackWidth()); + config.writeEntry(TQString("%1TrackWidth").arg(typeKey), trackWidth()); config.sync(); } -- cgit v1.2.1