From 6ca08e7a881c0c97f338e0085f75af04ec08ad04 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:57:35 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a. --- src/commands/notation/AddFingeringMarkCommand.cpp | 2 +- src/commands/notation/AddIndicationCommand.cpp | 2 +- src/commands/notation/AddMarkCommand.cpp | 4 ++-- src/commands/notation/ClefInsertionCommand.cpp | 2 +- src/commands/notation/KeyInsertionCommand.h | 2 +- src/commands/notation/MultiKeyInsertionCommand.h | 2 +- src/commands/notation/RespellCommand.cpp | 12 ++++++------ 7 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/commands/notation') diff --git a/src/commands/notation/AddFingeringMarkCommand.cpp b/src/commands/notation/AddFingeringMarkCommand.cpp index 2a6a310..4715951 100644 --- a/src/commands/notation/AddFingeringMarkCommand.cpp +++ b/src/commands/notation/AddFingeringMarkCommand.cpp @@ -46,7 +46,7 @@ AddFingeringMarkCommand::getGlobalName(TQString fingering) else if (fingering == "0") return i18n("Add Fingering &0 (Thumb)"); else - return i18n("Add Fingering &%1").arg(fingering); + return i18n("Add Fingering &%1").tqarg(fingering); } void diff --git a/src/commands/notation/AddIndicationCommand.cpp b/src/commands/notation/AddIndicationCommand.cpp index e6b4493..fd24930 100644 --- a/src/commands/notation/AddIndicationCommand.cpp +++ b/src/commands/notation/AddIndicationCommand.cpp @@ -164,7 +164,7 @@ AddIndicationCommand::getGlobalName(std::string indicationType) return i18n("Add &Glissando"); } - TQString n = i18n("Add &%1%2").arg((char)toupper(indicationType[0])).arg(strtoqstr(indicationType.substr(1))); + TQString n = i18n("Add &%1%2").tqarg((char)toupper(indicationType[0])).tqarg(strtoqstr(indicationType.substr(1))); return n; } diff --git a/src/commands/notation/AddMarkCommand.cpp b/src/commands/notation/AddMarkCommand.cpp index 49c69ec..5386eac 100644 --- a/src/commands/notation/AddMarkCommand.cpp +++ b/src/commands/notation/AddMarkCommand.cpp @@ -81,12 +81,12 @@ AddMarkCommand::getGlobalName(Mark markType) else if (markType == Marks::MordentLongInverted) m = i18n("Lon&g Inverted Mordent"); else - m = i18n("&%1%2").arg(m[0].upper()).arg(m.right(m.length() - 1)); + m = i18n("&%1%2").tqarg(m[0].upper()).tqarg(m.right(m.length() - 1)); // FIXME: That last i18n has very little chance of working, unless // by some miracle the exact same string was translated elsewhere already // but we'll leave it as a warning - m = i18n("Add %1").arg(m); + m = i18n("Add %1").tqarg(m); return m; } diff --git a/src/commands/notation/ClefInsertionCommand.cpp b/src/commands/notation/ClefInsertionCommand.cpp index 2268325..701b873 100644 --- a/src/commands/notation/ClefInsertionCommand.cpp +++ b/src/commands/notation/ClefInsertionCommand.cpp @@ -68,7 +68,7 @@ ClefInsertionCommand::getGlobalName(Clef *) if (clef) { TQString name(strtoqstr(clef->getClefType())); name = name.left(1).upper() + name.right(name.length()-1); - return i18n("Change to %1 Cle&f...").arg(name); + return i18n("Change to %1 Cle&f...").tqarg(name); } else { */ return i18n("Add Cle&f Change..."); diff --git a/src/commands/notation/KeyInsertionCommand.h b/src/commands/notation/KeyInsertionCommand.h index 1a03383..7adfd6b 100644 --- a/src/commands/notation/KeyInsertionCommand.h +++ b/src/commands/notation/KeyInsertionCommand.h @@ -62,7 +62,7 @@ public: static TQString getGlobalName(Key *key = 0) { if (key) { - return i18n("Change to &Key %1...").arg(strtoqstr(key->getName())); + return i18n("Change to &Key %1...").tqarg(strtoqstr(key->getName())); } else { return i18n("Add &Key Change..."); } diff --git a/src/commands/notation/MultiKeyInsertionCommand.h b/src/commands/notation/MultiKeyInsertionCommand.h index 644e877..9683589 100644 --- a/src/commands/notation/MultiKeyInsertionCommand.h +++ b/src/commands/notation/MultiKeyInsertionCommand.h @@ -60,7 +60,7 @@ public: static TQString getGlobalName(Key *key = 0) { if (key) { - return i18n("Change all to &Key %1...").arg(strtoqstr(key->getName())); + return i18n("Change all to &Key %1...").tqarg(strtoqstr(key->getName())); } else { return i18n("Add &Key Change..."); } diff --git a/src/commands/notation/RespellCommand.cpp b/src/commands/notation/RespellCommand.cpp index 983622a..81e635f 100644 --- a/src/commands/notation/RespellCommand.cpp +++ b/src/commands/notation/RespellCommand.cpp @@ -47,17 +47,17 @@ RespellCommand::getGlobalName(Type type, Accidental accidental) TQString s(i18n("Respell with %1")); //!!! should be in notationstrings: if (accidental == DoubleSharp) { - s = s.arg(i18n("Do&uble Sharp")); + s = s.tqarg(i18n("Do&uble Sharp")); } else if (accidental == Sharp) { - s = s.arg(i18n("&Sharp")); + s = s.tqarg(i18n("&Sharp")); } else if (accidental == Flat) { - s = s.arg(i18n("&Flat")); + s = s.tqarg(i18n("&Flat")); } else if (accidental == DoubleFlat) { - s = s.arg(i18n("Dou&ble Flat")); + s = s.tqarg(i18n("Dou&ble Flat")); } else if (accidental == Natural) { - s = s.arg(i18n("&Natural")); + s = s.tqarg(i18n("&Natural")); } else { - s = s.arg(i18n("N&one")); + s = s.tqarg(i18n("N&one")); } return s; } -- cgit v1.2.1