diff options
Diffstat (limited to 'kmymoney2/widgets/kmymoneycalculator.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneycalculator.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/widgets/kmymoneycalculator.cpp b/kmymoney2/widgets/kmymoneycalculator.cpp index e202b80..1a117fa 100644 --- a/kmymoney2/widgets/kmymoneycalculator.cpp +++ b/kmymoney2/widgets/kmymoneycalculator.cpp @@ -38,8 +38,8 @@ #include "kmymoneycalculator.h" -kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* tqparent, const char *name) - : TQFrame(tqparent, name) +kMyMoneyCalculator::kMyMoneyCalculator(TQWidget* parent, const char *name) + : TQFrame(parent, name) { m_comma = KGlobal::locale()->monetaryDecimalSymbol()[0]; m_clearOperandOnDigit = false; @@ -321,23 +321,23 @@ const TQString kMyMoneyCalculator::result(void) const txt.replace(TQRegExp("\\."), m_comma); if(txt[0] == '-') { txt = txt.mid(1); // get rid of the minus sign - TQString tqmask; + TQString mask; switch(KGlobal::locale()->negativeMonetarySignPosition()) { case KLocale::ParensAround: - tqmask = "(%1)"; + mask = "(%1)"; break; case KLocale::AfterQuantityMoney: - tqmask = "%1-"; + mask = "%1-"; break; case KLocale::AfterMoney: case KLocale::BeforeMoney: - tqmask = "%1 -"; + mask = "%1 -"; break; case KLocale::BeforeQuantityMoney: - tqmask = "-%1"; + mask = "-%1"; break; } - txt = TQString(tqmask).tqarg(txt); + txt = TQString(mask).tqarg(txt); } return txt; } |