summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/querytable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/reports/querytable.cpp')
-rw-r--r--kmymoney2/reports/querytable.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/reports/querytable.cpp b/kmymoney2/reports/querytable.cpp
index f296303..8257ce3 100644
--- a/kmymoney2/reports/querytable.cpp
+++ b/kmymoney2/reports/querytable.cpp
@@ -27,7 +27,7 @@
// QT Includes
#include <tqvaluelist.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -59,7 +59,7 @@ namespace reports {
//
// ****************************************************************************
-TQDate CashFlowListItem::m_sToday = TQDate::currentDate();
+TQDate CashFlowListItem::m_sToday = TQDate::tqcurrentDate();
MyMoneyMoney CashFlowListItem::NPV( double _rate ) const
{
@@ -432,8 +432,8 @@ void QueryTable::constructTransactionTable(void)
qA["commodity"] = qS["commodity"] = (* it_transaction).commodity();
pd = (* it_transaction).postDate();
- qA["month"] = qS["month"] = i18n("Month of %1").arg(TQDate(pd.year(),pd.month(),1).toString(Qt::ISODate));
- qA["week"] = qS["week"] = i18n("Week of %1").arg(pd.addDays(1-pd.dayOfWeek()).toString(Qt::ISODate));
+ qA["month"] = qS["month"] = i18n("Month of %1").tqarg(TQDate(pd.year(),pd.month(),1).toString(Qt::ISODate));
+ qA["week"] = qS["week"] = i18n("Week of %1").tqarg(pd.addDays(1-pd.dayOfWeek()).toString(Qt::ISODate));
qA["currency"] = qS["currency"] = "";
@@ -671,7 +671,7 @@ void QueryTable::constructTransactionTable(void)
//--- default case includes all transaction details
else {
- //this is when the splits are going to be shown as children of the main split
+ //this is when the splits are going to be shown as tqchildren of the main split
if ((splits.count() > 2) && use_summary) {
qA["value"] = "";
@@ -693,8 +693,8 @@ void QueryTable::constructTransactionTable(void)
if (! splitAcc.isIncomeExpense()) {
qA["category"] = ((*it_split).shares().isNegative()) ?
- i18n("Transfer from %1").arg(splitAcc.fullName())
- : i18n("Transfer to %1").arg(splitAcc.fullName());
+ i18n("Transfer from %1").tqarg(splitAcc.fullName())
+ : i18n("Transfer to %1").tqarg(splitAcc.fullName());
qA["topcategory"] = splitAcc.topParentName();
qA["categorytype"] = i18n("Transfer");
}
@@ -735,8 +735,8 @@ void QueryTable::constructTransactionTable(void)
qS["topaccount"] = splitAcc.topParentName();
qS["category"] = ((*it_split).shares().isNegative())
- ? i18n("Transfer to %1").arg(a_fullname)
- : i18n("Transfer from %1").arg(a_fullname);
+ ? i18n("Transfer to %1").tqarg(a_fullname)
+ : i18n("Transfer from %1").tqarg(a_fullname);
qS["institution"] = institution.isEmpty()
? i18n("No Institution")
@@ -1209,8 +1209,8 @@ void QueryTable::constructSplitsTable(void)
qA["commodity"] = qS["commodity"] = (* it_transaction).commodity();
pd = (* it_transaction).postDate();
- qA["month"] = qS["month"] = i18n("Month of %1").arg(TQDate(pd.year(),pd.month(),1).toString(Qt::ISODate));
- qA["week"] = qS["week"] = i18n("Week of %1").arg(pd.addDays(1-pd.dayOfWeek()).toString(Qt::ISODate));
+ qA["month"] = qS["month"] = i18n("Month of %1").tqarg(TQDate(pd.year(),pd.month(),1).toString(Qt::ISODate));
+ qA["week"] = qS["week"] = i18n("Week of %1").tqarg(pd.addDays(1-pd.dayOfWeek()).toString(Qt::ISODate));
qA["currency"] = qS["currency"] = "";
@@ -1364,8 +1364,8 @@ void QueryTable::constructSplitsTable(void)
//fill in account information
if (! splitAcc.isIncomeExpense() && it_split != myBegin) {
qA["account"] = ((*it_split).shares().isNegative()) ?
- i18n("Transfer to %1").arg(myBeginAcc.fullName())
- : i18n("Transfer from %1").arg(myBeginAcc.fullName());
+ i18n("Transfer to %1").tqarg(myBeginAcc.fullName())
+ : i18n("Transfer from %1").tqarg(myBeginAcc.fullName());
} else if (it_split == myBegin ) {
//handle the main split
if((splits.count() > 2)) {
@@ -1383,8 +1383,8 @@ void QueryTable::constructSplitsTable(void)
ReportAccount tempSplitAcc = (*tempSplit).accountId();
if (! tempSplitAcc.isIncomeExpense()) {
qA["account"] = ((*it_split).shares().isNegative()) ?
- i18n("Transfer to %1").arg(tempSplitAcc.fullName())
- : i18n("Transfer from %1").arg(tempSplitAcc.fullName());
+ i18n("Transfer to %1").tqarg(tempSplitAcc.fullName())
+ : i18n("Transfer from %1").tqarg(tempSplitAcc.fullName());
} else {
qA["account"] = tempSplitAcc.fullName();
}