summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneymoney.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:31:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:31:01 -0600
commit252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch)
treed5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/mymoney/mymoneymoney.cpp
parent69ef6c4beaa37474a2170d0bfe842de647f53102 (diff)
downloadkmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz
kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/mymoney/mymoneymoney.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneymoney.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/mymoney/mymoneymoney.cpp b/kmymoney2/mymoney/mymoneymoney.cpp
index 5a8b562..2d380d3 100644
--- a/kmymoney2/mymoney/mymoneymoney.cpp
+++ b/kmymoney2/mymoney/mymoneymoney.cpp
@@ -145,7 +145,7 @@ MyMoneyMoney::MyMoneyMoney(const TQString& pszAmount)
// a) numeric
// b) _decimalSeparator
// c) negative indicator
- TQString validChars = TQString("\\d%1").tqarg(TQChar(decimalSeparator()));
+ TQString validChars = TQString("\\d%1").arg(TQChar(decimalSeparator()));
// we need to escape the minus sign here, because later on it will be
// part of "\d,-()" and that does not work. It needs to be "\d,\-()"
// And we need two of them, because we're in C
@@ -158,11 +158,11 @@ MyMoneyMoney::MyMoneyMoney(const TQString& pszAmount)
validChars += negChars;
// qDebug("0: '%s'", validChars.data());
- TQRegExp invChars(TQString("[^%1]").tqarg(validChars));
+ TQRegExp invChars(TQString("[^%1]").arg(validChars));
// qDebug("1: '%s'", res.data());
res.remove(invChars);
- TQRegExp negCharSet(TQString("[%1]").tqarg(negChars));
+ TQRegExp negCharSet(TQString("[%1]").arg(negChars));
bool isNegative = false;
if(res.find(negCharSet) != -1) {
isNegative = true;
@@ -243,12 +243,12 @@ TQString MyMoneyMoney::formatMoney(const TQString& currency, const int prec, boo
// TQString.sprintf("%Ld") did not work :-(, so I had to
// do it the old ugly way.
while(tmp) {
- res.insert(0, TQString("%1").tqarg(static_cast<int>(tmp % 10)));
+ res.insert(0, TQString("%1").arg(static_cast<int>(tmp % 10)));
tmp /= 10;
}
} else
- res = TQString("%1").tqarg((long)left);
+ res = TQString("%1").arg((long)left);
if(showThousandSeparator) {
int pos = res.length();
@@ -262,13 +262,13 @@ TQString MyMoneyMoney::formatMoney(const TQString& currency, const int prec, boo
// using
//
- // res += TQString("%1").tqarg(right).rightJustify(prec, '0', true);
+ // res += TQString("%1").arg(right).rightJustify(prec, '0', true);
//
// caused some weird results if right was rather large. Eg: right being
// 666600000 should have appended a 0, but instead it prepended a 0. With
// res being "2," the result wasn't "2,6666000000" as expected, but rather
// "2,0666600000" which was not usable. The code below works for me.
- TQString rs = TQString("%1").tqarg(right);
+ TQString rs = TQString("%1").arg(right);
if(prec != -1)
rs = rs.rightJustify(prec, '0', true);
else {
@@ -325,7 +325,7 @@ const TQString MyMoneyMoney::toString(void) const
// TQString.sprintf("%Ld") did not work :-(, so I had to
// do it the old ugly way.
while(tmp) {
- res.prepend(TQString("%1").tqarg(static_cast<int>(tmp % 10)));
+ res.prepend(TQString("%1").arg(static_cast<int>(tmp % 10)));
tmp /= 10;
}
if(res.isEmpty())
@@ -336,7 +336,7 @@ const TQString MyMoneyMoney::toString(void) const
tmp = m_denom;
while(tmp) {
- resf.prepend(TQString("%1").tqarg(static_cast<int>(tmp % 10)));
+ resf.prepend(TQString("%1").arg(static_cast<int>(tmp % 10)));
tmp /= 10;
}
return res + "/" + resf;