diff options
Diffstat (limited to 'kmymoney2/dialogs/transactioneditor.cpp')
-rw-r--r-- | kmymoney2/dialogs/transactioneditor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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; |