summaryrefslogtreecommitdiffstats
path: root/kplato/kptwbsdefinition.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kplato/kptwbsdefinition.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kplato/kptwbsdefinition.cc')
-rw-r--r--kplato/kptwbsdefinition.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/kplato/kptwbsdefinition.cc b/kplato/kptwbsdefinition.cc
index e25f9fe6..fd6b48aa 100644
--- a/kplato/kptwbsdefinition.cc
+++ b/kplato/kptwbsdefinition.cc
@@ -108,25 +108,25 @@ const TQChar Letters[] = { '?','a','b','c','d','e','f','g','h','i','j','k','l','
TQString WBSDefinition::code(CodeDef &def, uint index) {
if (def.code == "Number") {
- return TQString("%1").arg(index);
+ return TQString("%1").tqarg(index);
}
if (def.code == "Roman, lower case") {
- return TQString("%1").arg(toRoman(index));
+ return TQString("%1").tqarg(toRoman(index));
}
if (def.code == "Roman, upper case") {
- return TQString("%1").arg(toRoman(index, true));
+ return TQString("%1").tqarg(toRoman(index, true));
}
if (def.code == "Letter, lower case") {
if (index > 26) {
index = 0;
}
- return TQString("%1").arg(Letters[index]);
+ return TQString("%1").tqarg(Letters[index]);
}
if (def.code == "Letter, upper case") {
if (index > 26) {
index = 0;
}
- return TQString("%1").arg(Letters[index].upper());
+ return TQString("%1").tqarg(Letters[index].upper());
}
return TQString();
}
@@ -140,7 +140,7 @@ const TQCString RNThousands[] = {"", "m", "mm", "mmm"};
TQString WBSDefinition::toRoman( int n, bool upper )
{
if ( n >= 0 ) {
- TQString s = TQString::fromLatin1( RNThousands[ ( n / 1000 ) ] +
+ TQString s = TQString::tqfromLatin1( RNThousands[ ( n / 1000 ) ] +
RNHundreds[ ( n / 100 ) % 10 ] +
RNTens[ ( n / 10 ) % 10 ] +
RNUnits[ ( n ) % 10 ] );