diff options
Diffstat (limited to 'kmymoney2/dialogs/kendingbalancedlg.cpp')
-rw-r--r-- | kmymoney2/dialogs/kendingbalancedlg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/dialogs/kendingbalancedlg.cpp b/kmymoney2/dialogs/kendingbalancedlg.cpp index 0e692c0..71e497d 100644 --- a/kmymoney2/dialogs/kendingbalancedlg.cpp +++ b/kmymoney2/dialogs/kendingbalancedlg.cpp @@ -199,24 +199,24 @@ void KEndingBalanceDlg::slotUpdateBalances(void) balance = balance * factor; endBalance = startBalance = balance; - tracer.printf("total balance = %s", endBalance.formatMoney("", 2).data()); + tracer.printf("total balance = %s", endBalance.formatMoney("", 2).local8Bit().data()); for(it = transactionList.begin(); it != transactionList.end(); ++it) { const MyMoneySplit& split = (*it).second; balance -= split.shares() * factor; if((*it).first.postDate() > m_statementDate->date()) { - tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date", (split.shares() * factor).formatMoney("", 2).data(), (*it).first.id().data(),split.id().data(), (*it).first.postDate().toString(Qt::ISODate).data()); + tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(),split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data()); endBalance -= split.shares() * factor; startBalance -= split.shares() * factor; } else { switch(split.reconcileFlag()) { case MyMoneySplit::NotReconciled: - tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled", (split.shares() * factor).formatMoney("", 2).data(), (*it).first.id().data(), split.id().data(), (*it).first.postDate().toString(Qt::ISODate).data()); + tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data()); endBalance -= split.shares() * factor; startBalance -= split.shares() * factor; break; case MyMoneySplit::Cleared: - tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared", (split.shares() * factor).formatMoney("", 2).data(), (*it).first.id().data(), split.id().data(), (*it).first.postDate().toString(Qt::ISODate).data()); + tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data()); startBalance -= split.shares() * factor; break; default: @@ -226,8 +226,8 @@ void KEndingBalanceDlg::slotUpdateBalances(void) } m_previousBalance->setValue(startBalance); m_endingBalance->setValue(endBalance); - tracer.printf("total balance = %s", endBalance.formatMoney("", 2).data()); - tracer.printf("start balance = %s", startBalance.formatMoney("", 2).data()); + tracer.printf("total balance = %s", endBalance.formatMoney("", 2).local8Bit().data()); + tracer.printf("start balance = %s", startBalance.formatMoney("", 2).local8Bit().data()); m_interestDateEdit->setDate(m_statementDate->date()); m_chargesDateEdit->setDate(m_statementDate->date()); @@ -366,7 +366,7 @@ bool KEndingBalanceDlg::createTransaction(MyMoneyTransaction &t, const int sign, t.modifySplit(s2); } catch(MyMoneyException *e) { - tqDebug("%s", e->what().data()); + tqDebug(e->what()); delete e; t = MyMoneyTransaction(); return false; @@ -594,7 +594,7 @@ const MyMoneyTransaction KEndingBalanceLoanDlg::adjustmentTransaction(void) cons t.setPostDate(m_endDateEdit->date()); } catch(MyMoneyException *e) { - tqDebug("Unable to create adjustment transaction for loan reconciliation: %s", e->what().data()); + tqDebug(TQString("Unable to create adjustment transaction for loan reconciliation: %1").arg(e->what())); delete e; return MyMoneyTransaction(); } |