diff options
author | Slávek Banko <[email protected]> | 2022-03-17 09:54:21 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-03-20 18:50:15 +0100 |
commit | a553069ad068dcab541282df24dbe12591153af8 (patch) | |
tree | 6e0b3fc71e22d976fe434da0deab1a1fe0117476 /kmymoney2/views/khomeview.cpp | |
parent | febacdee5bf580932e1937f656b475762b48acd6 (diff) | |
download | kmymoney-a553069ad068dcab541282df24dbe12591153af8.tar.gz kmymoney-a553069ad068dcab541282df24dbe12591153af8.zip |
Replace the use of the old API TQString::data().
The definition of -UTQT_NO_COMPAT is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit eeae53f59df4d79d0399c2217a165ff2fab754db)
Diffstat (limited to 'kmymoney2/views/khomeview.cpp')
-rw-r--r-- | kmymoney2/views/khomeview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp index 11cc2a9..86157f4 100644 --- a/kmymoney2/views/khomeview.cpp +++ b/kmymoney2/views/khomeview.cpp @@ -191,8 +191,8 @@ void KHomeView::loadView(void) { tqDebug("Element id=test found!"); TQString tagname = e.tagName().string(); - tqDebug("%s",tagname.latin1()); - tqDebug("%s id=%s",e.tagName().string().latin1(),e.getAttribute("id").string().latin1()); + tqDebug(tagname); + tqDebug(TQString("%1 id=%2").arg(e.tagName().string()).arg(e.getAttribute("id").string())); // Find the character data node DOM::Node n = e.firstChild(); @@ -208,7 +208,7 @@ void KHomeView::loadView(void) m_part->document().importNode(e,true); m_part->document().updateRendering(); - tqDebug("Data is now %s",t.data().string().latin1()); + tqDebug(TQString("Data is now %1").arg(t.data().string())); } n = n.nextSibling(); } @@ -686,12 +686,12 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt) tmp += showColoredAmount(balance, balanceAfter.isNegative()); tmp += "</td>"; - // tqDebug("paymentEntry = '%s'", tmp.latin1()); + // tqDebug(TQString("paymentEntry = '%1'").arg(tmp)); m_part->write(tmp); } } } catch(MyMoneyException* e) { - tqDebug("Unable to display schedule entry: %s", e->what().data()); + tqDebug(TQString("Unable to display schedule entry: %1").arg(e->what())); delete e; } } @@ -872,7 +872,7 @@ void KHomeView::showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney& tmp += TQString("<td class=\"right\">%1</td>").arg(showColoredAmount(amountToMinBal, valueToMinBal.isNegative())); } } - // tqDebug("accountEntry = '%s'", tmp.latin1()); + // tqDebug(TQString("accountEntry = '%1'").arg(tmp)); m_part->write(tmp); } @@ -897,7 +897,7 @@ MyMoneyMoney KHomeView::investmentBalance(const MyMoneyAccount& acc) val = val.convert(acc.fraction()); value += val; } catch(MyMoneyException* e) { - tqWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data()); + tqWarning(TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())); delete e; } } @@ -1188,7 +1188,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */) loadView(); } else { - tqDebug("Unknown view '%s' in KHomeView::slotOpenURL()", view.latin1()); + tqDebug(TQString("Unknown view '%1' in KHomeView::slotOpenURL()").arg(view)); } } } |