From 7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/views/khomeview.cpp | 48 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kmymoney2/views/khomeview.cpp') diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp index 51e9c65..eadf2ed 100644 --- a/kmymoney2/views/khomeview.cpp +++ b/kmymoney2/views/khomeview.cpp @@ -246,7 +246,7 @@ void KHomeView::loadView(void) case 3: // payment accounts // Check if preferred accounts are shown separately - if(settings.tqfind("2") == settings.end()) { + if(settings.find("2") == settings.end()) { showAccounts(static_cast (Payment | Preferred), i18n("Payment Accounts")); } else { @@ -662,7 +662,7 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt) const MyMoneySecurity& currency = MyMoneyFile::instance()->currency(acc.currencyId()); TQString amount = (sp.value()*cnt).formatMoney(acc, currency); - amount.tqreplace(" "," "); + amount.replace(" "," "); tmp += showColoredAmount(amount, (sp.value()*cnt).isNegative()) ; tmp += ""; //show balance after payments @@ -671,7 +671,7 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt) TQDate paymentDate = TQDate(sched.nextDueDate()); MyMoneyMoney balanceAfter = forecastPaymentBalance(acc, payment, paymentDate); TQString balance = balanceAfter.formatMoney(acc, currency); - balance.tqreplace(" "," "); + balance.replace(" "," "); tmp += showColoredAmount(balance, balanceAfter.isNegative()); tmp += ""; @@ -839,10 +839,10 @@ void KHomeView::showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney& //format amounts amount = value.formatMoney(acc, currency); - amount.tqreplace(" "," "); + amount.replace(" "," "); if(showMinBal) { amountToMinBal = valueToMinBal.formatMoney(acc, currency); - amountToMinBal.tqreplace(" "," "); + amountToMinBal.replace(" "," "); } tmp = TQString("") + @@ -1006,7 +1006,7 @@ void KHomeView::showForecast(void) forecastBalance = m_forecast.forecastBalance(*it_account, TQDate::tqcurrentDate().addDays(f)); TQString amount; amount = forecastBalance.formatMoney( *it_account, currency); - amount.tqreplace(" "," "); + amount.replace(" "," "); m_part->write(TQString("").tqarg(colWidth)); m_part->write(TQString("%1").tqarg(showColoredAmount(amount, forecastBalance.isNegative()))); } @@ -1090,7 +1090,7 @@ const TQString KHomeView::link(const TQString& view, const TQString& query, cons TQString titlePart; TQString title(_title); if(!title.isEmpty()) - titlePart = TQString(" title=\"%1\"").tqarg(title.tqreplace(" ", " ")); + titlePart = TQString(" title=\"%1\"").tqarg(title.replace(" ", " ")); return TQString("").tqarg(view, query, titlePart); } @@ -1321,9 +1321,9 @@ void KHomeView::showAssetsLiabilities(void) TQString amountAssets = netAssets.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountLiabilities = netLiabilities.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountNetWorth = netWorth.formatMoney(file->baseCurrency().tradingSymbol(), prec); - amountAssets.tqreplace(" "," "); - amountLiabilities.tqreplace(" "," "); - amountNetWorth.tqreplace(" "," "); + amountAssets.replace(" "," "); + amountLiabilities.replace(" "," "); + amountNetWorth.replace(" "," "); m_part->write(TQString("").tqarg(i++ & 0x01 ? "even" : "odd")); @@ -1524,8 +1524,8 @@ MyMoneyMoney KHomeView::forecastPaymentBalance(const MyMoneyAccount& acc, const paymentDate = TQDate::tqcurrentDate().addDays(1); //check if the account is already there - if(m_accountList.tqfind(acc.id()) == m_accountList.end() - || m_accountList[acc.id()].tqfind(paymentDate) == m_accountList[acc.id()].end()) + if(m_accountList.find(acc.id()) == m_accountList.end() + || m_accountList[acc.id()].find(paymentDate) == m_accountList[acc.id()].end()) { if(paymentDate == TQDate::tqcurrentDate()) { m_accountList[acc.id()][paymentDate] = m_forecast.forecastBalance(acc, paymentDate); @@ -1598,8 +1598,8 @@ void KHomeView::showCashFlowSummary() //format income and expenses TQString amountIncome = incomeValue.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountExpense = expenseValue.formatMoney(file->baseCurrency().tradingSymbol(), prec); - amountIncome.tqreplace(" "," "); - amountExpense.tqreplace(" "," "); + amountIncome.replace(" "," "); + amountExpense.replace(" "," "); //calculate schedules @@ -1712,10 +1712,10 @@ void KHomeView::showCashFlowSummary() TQString amountScheduledLiquidTransfer = scheduledLiquidTransfer.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountScheduledOtherTransfer = scheduledOtherTransfer.formatMoney(file->baseCurrency().tradingSymbol(), prec); - amountScheduledIncome.tqreplace(" "," "); - amountScheduledExpense.tqreplace(" "," "); - amountScheduledLiquidTransfer.tqreplace(" "," "); - amountScheduledOtherTransfer.tqreplace(" "," "); + amountScheduledIncome.replace(" "," "); + amountScheduledExpense.replace(" "," "); + amountScheduledLiquidTransfer.replace(" "," "); + amountScheduledOtherTransfer.replace(" "," "); //get liquid assets and liabilities TQValueList accounts; @@ -1776,9 +1776,9 @@ void KHomeView::showCashFlowSummary() TQString amountLiquidAssets = liquidAssets.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountLiquidLiabilities = liquidLiabilities.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountLiquidWorth = liquidWorth.formatMoney(file->baseCurrency().tradingSymbol(), prec); - amountLiquidAssets.tqreplace(" "," "); - amountLiquidLiabilities.tqreplace(" "," "); - amountLiquidWorth.tqreplace(" "," "); + amountLiquidAssets.replace(" "," "); + amountLiquidLiabilities.replace(" "," "); + amountLiquidWorth.replace(" "," "); //show the summary m_part->write("
" + i18n("Cash Flow Summary") + "
\n
 
\n"); @@ -1876,9 +1876,9 @@ void KHomeView::showCashFlowSummary() TQString amountExpectedAsset = expectedAsset.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountExpectedLiabilities = expectedLiabilities.formatMoney(file->baseCurrency().tradingSymbol(), prec); TQString amountProfit = profitValue.formatMoney(file->baseCurrency().tradingSymbol(), prec); - amountProfit.tqreplace(" "," "); - amountExpectedAsset.tqreplace(" "," "); - amountExpectedLiabilities.tqreplace(" "," "); + amountProfit.replace(" "," "); + amountExpectedAsset.replace(" "," "); + amountExpectedLiabilities.replace(" "," "); -- cgit v1.2.1