diff options
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)); } } } |