From a553069ad068dcab541282df24dbe12591153af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 17 Mar 2022 09:54:21 +0100 Subject: Replace the use of the old API TQString::data(). The definition of -UTQT_NO_COMPAT is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit eeae53f59df4d79d0399c2217a165ff2fab754db) --- kmymoney2/dialogs/transactioneditor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kmymoney2/dialogs/transactioneditor.cpp') 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(haveWidget("category-label")); - // tqDebug("Update category to %s", id.data()); + // tqDebug(TQString("Update category to %1").arg(id)); if(categoryLabel) { TabBar* tabbar = dynamic_cast(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; -- cgit v1.2.1