diff options
Diffstat (limited to 'kmymoney2/reports')
-rw-r--r-- | kmymoney2/reports/listtable.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/reports/objectinfotable.cpp | 10 | ||||
-rw-r--r-- | kmymoney2/reports/querytable.cpp | 32 |
3 files changed, 22 insertions, 22 deletions
diff --git a/kmymoney2/reports/listtable.cpp b/kmymoney2/reports/listtable.cpp index a171e47..5bfbd95 100644 --- a/kmymoney2/reports/listtable.cpp +++ b/kmymoney2/reports/listtable.cpp @@ -519,7 +519,7 @@ namespace reports { // if we have a locale() then use its date formatter if ( TDEGlobal::locale() && ! data.isEmpty() ) { - TQDate qd = TQDate::fromString ( data, Qt::ISODate ); + TQDate qd = TQDate::fromString ( data, TQt::ISODate ); data = TDEGlobal::locale()->formatDate ( qd, true ); } result += TQString ( "<td class=\"left\">%1</td>" ).arg ( data ); diff --git a/kmymoney2/reports/objectinfotable.cpp b/kmymoney2/reports/objectinfotable.cpp index 1e80538..033ea4a 100644 --- a/kmymoney2/reports/objectinfotable.cpp +++ b/kmymoney2/reports/objectinfotable.cpp @@ -170,7 +170,7 @@ void ObjectInfoTable::constructScheduleTable ( void ) //schedule data scheduleRow["id"] = schedule.id(); scheduleRow["name"] = schedule.name(); - scheduleRow["nextduedate"] = schedule.nextDueDate().toString ( Qt::ISODate ); + scheduleRow["nextduedate"] = schedule.nextDueDate().toString ( TQt::ISODate ); scheduleRow["type"] = KMyMoneyUtils::scheduleTypeToString ( schedule.type() ); scheduleRow["occurence"] = i18n(schedule.occurenceToString().utf8()); scheduleRow["paymenttype"] = KMyMoneyUtils::paymentMethodToString ( schedule.paymentType() ); @@ -202,7 +202,7 @@ void ObjectInfoTable::constructScheduleTable ( void ) splitRow["id"] = schedule.id(); splitRow["name"] = schedule.name(); splitRow["type"] = KMyMoneyUtils::scheduleTypeToString ( schedule.type() ); - splitRow["nextduedate"] = schedule.nextDueDate().toString ( Qt::ISODate ); + splitRow["nextduedate"] = schedule.nextDueDate().toString ( TQt::ISODate ); if ( ( *split_it ).value() == MyMoneyMoney::autoCalc ) { splitRow["split"] = MyMoneyMoney::autoCalc.toString(); @@ -259,7 +259,7 @@ void ObjectInfoTable::constructAccountTable ( void ) accountRow["name"] = account.name(); accountRow["number"] = account.number(); accountRow["description"] = account.description(); - accountRow["openingdate"] = account.openingDate().toString( Qt::ISODate ); + accountRow["openingdate"] = account.openingDate().toString( TQt::ISODate ); //accountRow["currency"] = (file->currency(account.currencyId())).tradingSymbol(); accountRow["currencyname"] = (file->currency(account.currencyId())).name(); accountRow["balancewarning"] = account.value("minBalanceEarly"); @@ -320,13 +320,13 @@ void ObjectInfoTable::constructAccountLoanTable ( void ) accountRow["name"] = account.name(); accountRow["number"] = account.number(); accountRow["description"] = account.description(); - accountRow["openingdate"] = account.openingDate().toString( Qt::ISODate ); + accountRow["openingdate"] = account.openingDate().toString( TQt::ISODate ); //accountRow["currency"] = (file->currency(account.currencyId())).tradingSymbol(); accountRow["currencyname"] = (file->currency(account.currencyId())).name(); accountRow["payee"] = file->payee(loan.payee()).name(); accountRow["loanamount"] = (loan.loanAmount() * xr).toString(); accountRow["interestrate"] = (loan.interestRate(TQDate::currentDate())/MyMoneyMoney(100,1)*xr).toString(); - accountRow["nextinterestchange"] = loan.nextInterestChange().toString( Qt::ISODate ); + accountRow["nextinterestchange"] = loan.nextInterestChange().toString( TQt::ISODate ); accountRow["periodicpayment"] = (loan.periodicPayment() * xr).toString(); accountRow["finalpayment"] = (loan.finalPayment() * xr).toString(); accountRow["favorite"] = account.value("PreferredAccount"); diff --git a/kmymoney2/reports/querytable.cpp b/kmymoney2/reports/querytable.cpp index 3c46d5c..ccfaab4 100644 --- a/kmymoney2/reports/querytable.cpp +++ b/kmymoney2/reports/querytable.cpp @@ -88,7 +88,7 @@ CashFlowListItem CashFlowList::mostRecent(void) const CashFlowList dupe( *this ); qHeapSort( dupe ); - //kdDebug(2) << " CashFlowList::mostRecent() == " << dupe.back().date().toString(Qt::ISODate) << endl; + //kdDebug(2) << " CashFlowList::mostRecent() == " << dupe.back().date().toString(TQt::ISODate) << endl; return dupe.back(); } @@ -229,7 +229,7 @@ void CashFlowList::dumpDebug(void) const const_iterator it_item = begin(); while ( it_item != end() ) { - kdDebug(2) << TQString((*it_item).date().toString(Qt::ISODate)) << " " << (*it_item).value().toString() << endl; + kdDebug(2) << TQString((*it_item).date().toString(TQt::ISODate)) << " " << (*it_item).value().toString() << endl; ++it_item; } } @@ -431,13 +431,13 @@ void QueryTable::constructTransactionTable(void) TQDate pd; qA["id"] = qS["id"] = (* it_transaction).id(); - qA["entrydate"] = qS["entrydate"] = (* it_transaction).entryDate().toString(Qt::ISODate); - qA["postdate"] = qS["postdate"] = (* it_transaction).postDate().toString(Qt::ISODate); + qA["entrydate"] = qS["entrydate"] = (* it_transaction).entryDate().toString(TQt::ISODate); + qA["postdate"] = qS["postdate"] = (* it_transaction).postDate().toString(TQt::ISODate); 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").arg(TQDate(pd.year(),pd.month(),1).toString(TQt::ISODate)); + qA["week"] = qS["week"] = i18n("Week of %1").arg(pd.addDays(1-pd.dayOfWeek()).toString(TQt::ISODate)); qA["currency"] = qS["currency"] = ""; @@ -587,7 +587,7 @@ void QueryTable::constructTransactionTable(void) ? i18n("[Empty Payee]") : file->payee(payee).name().simplifyWhiteSpace(); - qA["reconciledate"] = (*it_split).reconcileDate().toString(Qt::ISODate); + qA["reconciledate"] = (*it_split).reconcileDate().toString(TQt::ISODate); qA["reconcileflag"] = KMyMoneyUtils::reconcileStateToString((*it_split).reconcileFlag(), true ); qA["number"] = (*it_split).number(); @@ -814,8 +814,8 @@ void QueryTable::constructTransactionTable(void) TQDate startDate, endDate; report.validDateRange(startDate, endDate); - TQString strStartDate = startDate.toString(Qt::ISODate); - TQString strEndDate = endDate.toString(Qt::ISODate); + TQString strStartDate = startDate.toString(TQt::ISODate); + TQString strEndDate = endDate.toString(TQt::ISODate); startDate = startDate.addDays(-1); TQMap<TQString, MyMoneyAccount>::const_iterator it_account, accts_end; @@ -1208,13 +1208,13 @@ void QueryTable::constructSplitsTable(void) TQDate pd; qA["id"] = qS["id"] = (* it_transaction).id(); - qA["entrydate"] = qS["entrydate"] = (* it_transaction).entryDate().toString(Qt::ISODate); - qA["postdate"] = qS["postdate"] = (* it_transaction).postDate().toString(Qt::ISODate); + qA["entrydate"] = qS["entrydate"] = (* it_transaction).entryDate().toString(TQt::ISODate); + qA["postdate"] = qS["postdate"] = (* it_transaction).postDate().toString(TQt::ISODate); 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").arg(TQDate(pd.year(),pd.month(),1).toString(TQt::ISODate)); + qA["week"] = qS["week"] = i18n("Week of %1").arg(pd.addDays(1-pd.dayOfWeek()).toString(TQt::ISODate)); qA["currency"] = qS["currency"] = ""; @@ -1345,7 +1345,7 @@ void QueryTable::constructSplitsTable(void) ? i18n("[Empty Payee]") : file->payee(payee).name().simplifyWhiteSpace(); - qA["reconciledate"] = (*it_split).reconcileDate().toString(Qt::ISODate); + qA["reconciledate"] = (*it_split).reconcileDate().toString(TQt::ISODate); qA["reconcileflag"] = KMyMoneyUtils::reconcileStateToString((*it_split).reconcileFlag(), true ); qA["number"] = (*it_split).number(); @@ -1446,8 +1446,8 @@ void QueryTable::constructSplitsTable(void) TQDate startDate, endDate; report.validDateRange(startDate, endDate); - TQString strStartDate = startDate.toString(Qt::ISODate); - TQString strEndDate = endDate.toString(Qt::ISODate); + TQString strStartDate = startDate.toString(TQt::ISODate); + TQString strEndDate = endDate.toString(TQt::ISODate); startDate = startDate.addDays(-1); TQMap<TQString, MyMoneyAccount>::const_iterator it_account, accts_end; |