diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
commit | 1f9d00360b9018301630ce062d7dda0c6583edfb (patch) | |
tree | 1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/dialogs/kcurrencycalculator.cpp | |
parent | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff) | |
download | kmymoney-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/dialogs/kcurrencycalculator.cpp')
-rw-r--r-- | kmymoney2/dialogs/kcurrencycalculator.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmymoney2/dialogs/kcurrencycalculator.cpp b/kmymoney2/dialogs/kcurrencycalculator.cpp index 0ecd16e..2306816 100644 --- a/kmymoney2/dialogs/kcurrencycalculator.cpp +++ b/kmymoney2/dialogs/kcurrencycalculator.cpp @@ -125,7 +125,7 @@ KCurrencyCalculator::KCurrencyCalculator(const MyMoneySecurity& from, const MyMo if(date.isValid()) m_dateEdit->setDate(date); else - m_dateEdit->setDate(TQDate::currentDate()); + m_dateEdit->setDate(TQDate::tqcurrentDate()); m_fromCurrencyText->setText(m_fromCurrency.isCurrency() ? m_fromCurrency.id() : m_fromCurrency.tradingSymbol()); m_toCurrencyText->setText(m_toCurrency.isCurrency() ? m_toCurrency.id() : m_toCurrency.tradingSymbol()); @@ -247,22 +247,22 @@ void KCurrencyCalculator::updateExample(const MyMoneyMoney& price) { TQString msg; if(price.isZero()) { - msg = TQString("1 %1 = ? %2").arg(m_fromCurrency.tradingSymbol()) - .arg(m_toCurrency.tradingSymbol()); + msg = TQString("1 %1 = ? %2").tqarg(m_fromCurrency.tradingSymbol()) + .tqarg(m_toCurrency.tradingSymbol()); if(m_fromCurrency.isCurrency()) { msg += TQString("\n"); - msg += TQString("1 %1 = ? %2").arg(m_toCurrency.tradingSymbol()) - .arg(m_fromCurrency.tradingSymbol()); + msg += TQString("1 %1 = ? %2").tqarg(m_toCurrency.tradingSymbol()) + .tqarg(m_fromCurrency.tradingSymbol()); } } else { - msg = TQString("1 %1 = %2 %3").arg(m_fromCurrency.tradingSymbol()) - .arg(price.formatMoney("", KMyMoneyGlobalSettings::pricePrecision())) - .arg(m_toCurrency.tradingSymbol()); + msg = TQString("1 %1 = %2 %3").tqarg(m_fromCurrency.tradingSymbol()) + .tqarg(price.formatMoney("", KMyMoneyGlobalSettings::pricePrecision())) + .tqarg(m_toCurrency.tradingSymbol()); if(m_fromCurrency.isCurrency()) { msg += TQString("\n"); - msg += TQString("1 %1 = %2 %3").arg(m_toCurrency.tradingSymbol()) - .arg((MyMoneyMoney(1,1)/price).formatMoney("", KMyMoneyGlobalSettings::pricePrecision())) - .arg(m_fromCurrency.tradingSymbol()); + msg += TQString("1 %1 = %2 %3").tqarg(m_toCurrency.tradingSymbol()) + .tqarg((MyMoneyMoney(1,1)/price).formatMoney("", KMyMoneyGlobalSettings::pricePrecision())) + .tqarg(m_fromCurrency.tradingSymbol()); } } m_conversionExample->setText(msg); |