summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/khomeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (patch)
tree6a288b084438ed144c0fbd4a34a9a22caf4d6b04 /kmymoney2/views/khomeview.cpp
parent154e6e6105157c321cbd578d238c525da419f868 (diff)
downloadkmymoney-7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2.tar.gz
kmymoney-7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2.zip
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
Diffstat (limited to 'kmymoney2/views/khomeview.cpp')
-rw-r--r--kmymoney2/views/khomeview.cpp48
1 files changed, 24 insertions, 24 deletions
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<paymentTypeE> (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(" ","&nbsp;");
+ amount.replace(" ","&nbsp;");
tmp += showColoredAmount(amount, (sp.value()*cnt).isNegative()) ;
tmp += "</td>";
//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(" ","&nbsp;");
+ balance.replace(" ","&nbsp;");
tmp += showColoredAmount(balance, balanceAfter.isNegative());
tmp += "</td>";
@@ -839,10 +839,10 @@ void KHomeView::showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney&
//format amounts
amount = value.formatMoney(acc, currency);
- amount.tqreplace(" ","&nbsp;");
+ amount.replace(" ","&nbsp;");
if(showMinBal) {
amountToMinBal = valueToMinBal.formatMoney(acc, currency);
- amountToMinBal.tqreplace(" ","&nbsp;");
+ amountToMinBal.replace(" ","&nbsp;");
}
tmp = TQString("<td>") +
@@ -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(" ","&nbsp;");
+ amount.replace(" ","&nbsp;");
m_part->write(TQString("<td width=\"%1%\" align=\"right\">").tqarg(colWidth));
m_part->write(TQString("%1</td>").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(" ", "&nbsp;"));
+ titlePart = TQString(" title=\"%1\"").tqarg(title.replace(" ", "&nbsp;"));
return TQString("<a href=\"/%1%2\"%3>").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(" ","&nbsp;");
- amountLiabilities.tqreplace(" ","&nbsp;");
- amountNetWorth.tqreplace(" ","&nbsp;");
+ amountAssets.replace(" ","&nbsp;");
+ amountLiabilities.replace(" ","&nbsp;");
+ amountNetWorth.replace(" ","&nbsp;");
m_part->write(TQString("<tr class=\"row-%1\" style=\"font-weight:bold;\">").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(" ","&nbsp;");
- amountExpense.tqreplace(" ","&nbsp;");
+ amountIncome.replace(" ","&nbsp;");
+ amountExpense.replace(" ","&nbsp;");
//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(" ","&nbsp;");
- amountScheduledExpense.tqreplace(" ","&nbsp;");
- amountScheduledLiquidTransfer.tqreplace(" ","&nbsp;");
- amountScheduledOtherTransfer.tqreplace(" ","&nbsp;");
+ amountScheduledIncome.replace(" ","&nbsp;");
+ amountScheduledExpense.replace(" ","&nbsp;");
+ amountScheduledLiquidTransfer.replace(" ","&nbsp;");
+ amountScheduledOtherTransfer.replace(" ","&nbsp;");
//get liquid assets and liabilities
TQValueList<MyMoneyAccount> 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(" ","&nbsp;");
- amountLiquidLiabilities.tqreplace(" ","&nbsp;");
- amountLiquidWorth.tqreplace(" ","&nbsp;");
+ amountLiquidAssets.replace(" ","&nbsp;");
+ amountLiquidLiabilities.replace(" ","&nbsp;");
+ amountLiquidWorth.replace(" ","&nbsp;");
//show the summary
m_part->write("<div class=\"shadow\"><div class=\"displayblock\"><div class=\"summaryheader\">" + i18n("Cash Flow Summary") + "</div>\n<div class=\"gap\">&nbsp;</div>\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(" ","&nbsp;");
- amountExpectedAsset.tqreplace(" ","&nbsp;");
- amountExpectedLiabilities.tqreplace(" ","&nbsp;");
+ amountProfit.replace(" ","&nbsp;");
+ amountExpectedAsset.replace(" ","&nbsp;");
+ amountExpectedLiabilities.replace(" ","&nbsp;");