summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneymoney.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:17 -0600
commit1f9d00360b9018301630ce062d7dda0c6583edfb (patch)
tree1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/mymoney/mymoneymoney.cpp
parent252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff)
downloadkmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.tar.gz
kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 252fce5a2a5384702fbcc1c9987284d7bd2e6943.
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 2d380d3..5a8b562 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").arg(TQChar(decimalSeparator()));
+ TQString validChars = TQString("\\d%1").tqarg(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]").arg(validChars));
+ TQRegExp invChars(TQString("[^%1]").tqarg(validChars));
// qDebug("1: '%s'", res.data());
res.remove(invChars);
- TQRegExp negCharSet(TQString("[%1]").arg(negChars));
+ TQRegExp negCharSet(TQString("[%1]").tqarg(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").arg(static_cast<int>(tmp % 10)));
+ res.insert(0, TQString("%1").tqarg(static_cast<int>(tmp % 10)));
tmp /= 10;
}
} else
- res = TQString("%1").arg((long)left);
+ res = TQString("%1").tqarg((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").arg(right).rightJustify(prec, '0', true);
+ // res += TQString("%1").tqarg(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").arg(right);
+ TQString rs = TQString("%1").tqarg(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").arg(static_cast<int>(tmp % 10)));
+ res.prepend(TQString("%1").tqarg(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").arg(static_cast<int>(tmp % 10)));
+ resf.prepend(TQString("%1").tqarg(static_cast<int>(tmp % 10)));
tmp /= 10;
}
return res + "/" + resf;