summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs')
-rw-r--r--kmymoney2/dialogs/investactivities.cpp2
-rw-r--r--kmymoney2/dialogs/kendingbalancedlg.cpp16
-rw-r--r--kmymoney2/dialogs/kequitypriceupdatedlg.cpp2
-rw-r--r--kmymoney2/dialogs/transactioneditor.cpp16
4 files changed, 18 insertions, 18 deletions
diff --git a/kmymoney2/dialogs/investactivities.cpp b/kmymoney2/dialogs/investactivities.cpp
index 2c348dd..d9bd7ca 100644
--- a/kmymoney2/dialogs/investactivities.cpp
+++ b/kmymoney2/dialogs/investactivities.cpp
@@ -159,7 +159,7 @@ void Activity::setLabelText(const TQString& idx, const TQString& txt) const
if(w) {
w->setText(txt);
} else {
- tqDebug("Unknown TQLabel named '%s'", idx.data());
+ tqDebug(TQString("Unknown TQLabel named '%1'").arg(idx));
}
}
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();
}
diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
index 8679d0c..c32e500 100644
--- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
+++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
@@ -369,7 +369,7 @@ void KEquityPriceUpdateDlg::storePrices(void)
ft.commit();
} catch(MyMoneyException *e) {
- tqDebug("Unable to add price information for %s", name.data());
+ tqDebug(TQString("Unable to add price information for %1").arg(name));
delete e;
}
}
diff --git a/kmymoney2/dialogs/transactioneditor.cpp b/kmymoney2/dialogs/transactioneditor.cpp
index 3456a93..b63e8c1 100644
--- a/kmymoney2/dialogs/transactioneditor.cpp
+++ b/kmymoney2/dialogs/transactioneditor.cpp
@@ -285,7 +285,7 @@ int TransactionEditor::slotEditSplits(void)
*m_transactionPtr = k;
}
} catch(MyMoneyException *e) {
- tqDebug("Unable to update commodity to second splits currency in %s: '%s'", m_transaction.id().data(), e->what().data());
+ tqDebug(TQString("Unable to update commodity to second splits currency in %1: '%2'").arg(m_transaction.id()).arg(e->what()));
delete e;
}
@@ -361,7 +361,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
(*it_t).transaction().modifySplit(splitB);
} catch(MyMoneyException *e) {
- tqDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug(TQString("Unable to update commodity to second splits currency in %1: '%2'").arg((*it_t).transaction().id()).arg(e->what()));
delete e;
}
break;
@@ -398,7 +398,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
(*it_t).transaction().modifySplit(splitB);
} catch(MyMoneyException *e) {
- tqDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug(TQString("Unable to update commodity to second splits currency in %1: '%2'").arg((*it_t).transaction().id()).arg(e->what()));
delete e;
}
break;
@@ -444,7 +444,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
}
}
} catch(MyMoneyException *e) {
- tqDebug("Unable to update commodity of split currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug(TQString("Unable to update commodity of split currency in %1: '%2'").arg((*it_t).transaction().id()).arg(e->what()));
delete e;
}
break;
@@ -711,7 +711,7 @@ bool TransactionEditor::enterTransactions(TQString& newId, bool askForSchedule,
}
}
} catch(MyMoneyException * e) {
- tqDebug("Unable to store transaction within engine: %s", e->what().latin1());
+ tqDebug(TQString("Unable to store transaction within engine: %1").arg(e->what()));
delete e;
newTransactionCreated = false;
}
@@ -1447,7 +1447,7 @@ void StdTransactionEditor::slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirectio
void StdTransactionEditor::slotUpdateCategory(const TQString& id)
{
TQLabel *categoryLabel = dynamic_cast<TQLabel*>(haveWidget("category-label"));
- // tqDebug("Update category to %s", id.data());
+ // tqDebug(TQString("Update category to %1").arg(id));
if(categoryLabel) {
TabBar* tabbar = dynamic_cast<TabBar*>(haveWidget("tabbar"));
@@ -1526,7 +1526,7 @@ void StdTransactionEditor::slotUpdateDeposit(const TQString& txt)
void StdTransactionEditor::slotUpdateAmount(const TQString& txt)
{
- // tqDebug("Update amount to %s", txt.data());
+ // tqDebug(TQString("Update amount to %1").arg(txt));
MyMoneyMoney val(txt);
updateAmount(val);
updateVAT(true);
@@ -1661,7 +1661,7 @@ bool StdTransactionEditor::addVatSplit(MyMoneyTransaction& tr, const MyMoneyMone
tax.setAccountId(vatAcc.id());
- // tqDebug("vat amount is '%s'", category.value("VatAmount").latin1());
+ // tqDebug(TQString("vat amount is '%1'").arg(category.value("VatAmount")));
if(category.value("VatAmount").lower() != TQString("net")) {
// split value is the gross value
gv = amount;