From aa85254cd16cb870b8d1649ef1dbad09bd8491e8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:19:48 -0600 Subject: Rename additional global TQt functions --- kmymoney2/views/kgloballedgerview.cpp | 18 +++++++++--------- kmymoney2/views/khomeview.cpp | 22 +++++++++++----------- kmymoney2/views/kinvestmentlistitem.cpp | 4 ++-- kmymoney2/views/kinvestmentview.cpp | 6 +++--- kmymoney2/views/kmymoneyview.cpp | 32 ++++++++++++++++---------------- kmymoney2/views/kpayeesview.cpp | 4 ++-- kmymoney2/views/kreportsview.cpp | 6 +++--- kmymoney2/views/kscheduledlistitem.cpp | 2 +- kmymoney2/views/kscheduledview.cpp | 2 +- 9 files changed, 48 insertions(+), 48 deletions(-) (limited to 'kmymoney2/views') diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp index e82459a..6806ea7 100644 --- a/kmymoney2/views/kgloballedgerview.cpp +++ b/kmymoney2/views/kgloballedgerview.cpp @@ -847,7 +847,7 @@ void KGlobalLedgerView::loadAccounts(void) try { d->m_precision = MyMoneyMoney::denomToPrec(m_account.fraction()); } catch(MyMoneyException *e) { - qDebug("Security %s for account %s not found", m_account.currencyId().data(), m_account.name().data()); + tqDebug("Security %s for account %s not found", m_account.currencyId().data(), m_account.name().data()); delete e; d->m_precision = 2; } @@ -956,7 +956,7 @@ bool KGlobalLedgerView::slotSelectAccount(const TQString& id, const TQString& tr m_newAccountLoaded = true; slotLoadView(); } catch(MyMoneyException* e) { - qDebug("Unable to retrieve account %s", id.data()); + tqDebug("Unable to retrieve account %s", id.data()); delete e; rc = false; } @@ -1207,17 +1207,17 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next) { bool rc = false; - // qDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false"); + // tqDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false"); if(m_inEditMode) { TQWidget *w = 0; TQWidget *currentWidget; w = tqApp->focusWidget(); while(w && m_tabOrderWidgets.find(w) == -1) { - // qDebug("'%s' not in list, use parent", w->className()); + // tqDebug("'%s' not in list, use parent", w->className()); w = w->parentWidget(); } - // if(w) qDebug("tab order is at '%s'", w->className()); + // if(w) tqDebug("tab order is at '%s'", w->className()); currentWidget = m_tabOrderWidgets.current(); w = next ? m_tabOrderWidgets.next() : m_tabOrderWidgets.prev(); @@ -1229,7 +1229,7 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next) if(w != currentWidget && ((w->focusPolicy() & TQ_TabFocus) == TQ_TabFocus) && w->isVisible() && w->isEnabled()) { - // qDebug("Selecting '%s' as focus", w->className()); + // tqDebug("Selecting '%s' as focus", w->className()); w->setFocus(); rc = true; break; @@ -1270,14 +1270,14 @@ bool KGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e) if(e->type() == TQEvent::KeyPress) { TQKeyEvent *k = TQT_TQKEYEVENT(e); if(m_inEditMode) { - // qDebug("object = %s, key = %d", o->className(), k->key()); + // tqDebug("object = %s, key = %d", o->className(), k->key()); if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) { // we hide all key press events from the register // while editing a transaction rc = true; } } else { - // qDebug("object = %s, key = %d", o->className(), k->key()); + // tqDebug("object = %s, key = %d", o->className(), k->key()); if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) { if((k->state() & TQt::KeyButtonMask) == 0) { switch(k->key()) { @@ -1333,7 +1333,7 @@ void KGlobalLedgerView::slotSortOptions(void) MyMoneyFile::instance()->modifyAccount(m_account); ft.commit(); } catch(MyMoneyException* e) { - qDebug("Unable to update sort order for account '%s': %s", m_account.name().latin1(), e->what().latin1()); + tqDebug("Unable to update sort order for account '%s': %s", m_account.name().latin1(), e->what().latin1()); delete e; } } diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp index bb13614..2469ed3 100644 --- a/kmymoney2/views/khomeview.cpp +++ b/kmymoney2/views/khomeview.cpp @@ -181,20 +181,20 @@ void KHomeView::loadView(void) DOM::Element e = m_part->document().getElementById("test"); if ( e.isNull() ) { - qDebug("Element id=test not found"); + tqDebug("Element id=test not found"); } else { - qDebug("Element id=test found!"); + tqDebug("Element id=test found!"); TQString tagname = e.tagName().string(); - qDebug("%s",tagname.latin1()); - qDebug("%s id=%s",e.tagName().string().latin1(),e.getAttribute("id").string().latin1()); + tqDebug("%s",tagname.latin1()); + tqDebug("%s id=%s",e.tagName().string().latin1(),e.getAttribute("id").string().latin1()); // Find the character data node DOM::Node n = e.firstChild(); while (!n.isNull()) { - qDebug("Child type %u",static_cast(n.nodeType())); + tqDebug("Child type %u",static_cast(n.nodeType())); if ( n.nodeType() == DOM::Node::TEXT_NODE ) { DOM::Text t = n; @@ -204,7 +204,7 @@ void KHomeView::loadView(void) m_part->document().importNode(e,true); m_part->document().updateRendering(); - qDebug("Data is now %s",t.data().string().latin1()); + tqDebug("Data is now %s",t.data().string().latin1()); } n = n.nextSibling(); } @@ -682,12 +682,12 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt) tmp += showColoredAmount(balance, balanceAfter.isNegative()); tmp += ""; - // qDebug("paymentEntry = '%s'", tmp.latin1()); + // tqDebug("paymentEntry = '%s'", tmp.latin1()); m_part->write(tmp); } } } catch(MyMoneyException* e) { - qDebug("Unable to display schedule entry: %s", e->what().data()); + tqDebug("Unable to display schedule entry: %s", e->what().data()); delete e; } } @@ -868,7 +868,7 @@ void KHomeView::showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney& tmp += TQString("%1").arg(showColoredAmount(amountToMinBal, valueToMinBal.isNegative())); } } - // qDebug("accountEntry = '%s'", tmp.latin1()); + // tqDebug("accountEntry = '%s'", tmp.latin1()); m_part->write(tmp); } @@ -893,7 +893,7 @@ MyMoneyMoney KHomeView::investmentBalance(const MyMoneyAccount& acc) val = val.convert(acc.fraction()); value += val; } catch(MyMoneyException* e) { - qWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data()); + tqWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data()); delete e; } } @@ -1184,7 +1184,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */) loadView(); } else { - qDebug("Unknown view '%s' in KHomeView::slotOpenURL()", view.latin1()); + tqDebug("Unknown view '%s' in KHomeView::slotOpenURL()", view.latin1()); } } } diff --git a/kmymoney2/views/kinvestmentlistitem.cpp b/kmymoney2/views/kinvestmentlistitem.cpp index d13f5d3..a2a7723 100644 --- a/kmymoney2/views/kinvestmentlistitem.cpp +++ b/kmymoney2/views/kinvestmentlistitem.cpp @@ -183,7 +183,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi return TQString("0.0%"); } - //qDebug("Current date/value to use is %s/%s, Previous is %s/%s", tempDate.toString().data(), currentValue.toString().data(), comparisonDate.toString().data(), comparisonValue.toString().data()); + //tqDebug("Current date/value to use is %s/%s, Previous is %s/%s", tempDate.toString().data(), currentValue.toString().data(), comparisonDate.toString().data(), comparisonValue.toString().data()); //compute the percentage difference if(comparisonValue != currentValue) @@ -201,7 +201,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi /*MyMoneyMoney result = (currentValue / comparisonValue); result = result * 100; result = result - 100; - qDebug("final result = %s", result.toString().data()); + tqDebug("final result = %s", result.toString().data()); return TQString(result.formatMoney("", 3) + "%");*/ } } diff --git a/kmymoney2/views/kinvestmentview.cpp b/kmymoney2/views/kinvestmentview.cpp index ba1876f..57d7aa8 100644 --- a/kmymoney2/views/kinvestmentview.cpp +++ b/kmymoney2/views/kinvestmentview.cpp @@ -182,7 +182,7 @@ void KInvestmentView::loadAccounts(void) try { d->m_precision = MyMoneyMoney::denomToPrec(d->m_account.fraction()); } catch(MyMoneyException *e) { - qDebug("Security %s for account %s not found", d->m_account.currencyId().data(), d->m_account.name().data()); + tqDebug("Security %s for account %s not found", d->m_account.currencyId().data(), d->m_account.name().data()); delete e; d->m_precision = 2; } @@ -231,7 +231,7 @@ bool KInvestmentView::slotSelectAccount(const TQString& id, const TQString& tran } } catch(MyMoneyException* e) { - qDebug("Unable to retrieve account %s", id.data()); + tqDebug("Unable to retrieve account %s", id.data()); delete e; rc = false; } @@ -295,7 +295,7 @@ void KInvestmentView::loadView(void) new KInvestmentListItem(m_table, acc); } } catch(MyMoneyException* e) { - qDebug("KInvestmentView::loadView() - selected account does not exist anymore"); + tqDebug("KInvestmentView::loadView() - selected account does not exist anymore"); d->m_account = MyMoneyAccount(); delete e; } diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp index 3b60c49..e622260 100644 --- a/kmymoney2/views/kmymoneyview.cpp +++ b/kmymoney2/views/kmymoneyview.cpp @@ -483,11 +483,11 @@ void KMyMoneyView::slotLedgerSelected(const TQString& _accId, const TQString& tr case MyMoneyAccount::CertificateDep: case MyMoneyAccount::MoneyMarket: case MyMoneyAccount::Currency: - qDebug("No ledger view available for account type %d", acc.accountType()); + tqDebug("No ledger view available for account type %d", acc.accountType()); break; default: - qDebug("Unknown account type %d in KMyMoneyView::slotLedgerSelected", acc.accountType()); + tqDebug("Unknown account type %d in KMyMoneyView::slotLedgerSelected", acc.accountType()); break; } } @@ -559,7 +559,7 @@ bool KMyMoneyView::readFile(const KURL& url) #else if(url.isMalformed()) { #endif - qDebug("Invalid URL '%s'", url.url().latin1()); + tqDebug("Invalid URL '%s'", url.url().latin1()); return false; } @@ -911,7 +911,7 @@ bool KMyMoneyView::initializeStorage() // Check if we have to modify the file before we allow to work with it IMyMoneyStorage* s = MyMoneyFile::instance()->storage(); while (s->fileFixVersion() < s->currentFixVersion()) { - qDebug("%s", (TQString("testing fileFixVersion %1 < %2").arg(s->fileFixVersion()).arg(s->currentFixVersion())).data()); + tqDebug("%s", (TQString("testing fileFixVersion %1 < %2").arg(s->fileFixVersion()).arg(s->currentFixVersion())).data()); switch (s->fileFixVersion()) { case 0: fixFile_0(); @@ -941,7 +941,7 @@ bool KMyMoneyView::initializeStorage() return false; } } else { - qDebug("Skipping automatic transaction fix!"); + tqDebug("Skipping automatic transaction fix!"); } MyMoneyFile::instance()->blockSignals(blocked); @@ -1308,7 +1308,7 @@ void KMyMoneyView::selectBaseCurrency(void) file->modifyAccount(*it); ft.commit(); } catch(MyMoneyException *e) { - qDebug("Unable to setup base currency in account %s (%s): %s", (*it).name().latin1(), (*it).id().data(), e->what().latin1()); + tqDebug("Unable to setup base currency in account %s (%s): %s", (*it).name().latin1(), (*it).id().data(), e->what().latin1()); delete e; } } @@ -1336,7 +1336,7 @@ void KMyMoneyView::loadDefaultCurrency(const MyMoneySecurity& currency, const bo } ft.commit(); } catch (MyMoneyException* e) { - qDebug("Error %s loading default currency", e->what().data()); + tqDebug("Error %s loading default currency", e->what().data()); delete e; } } @@ -1536,7 +1536,7 @@ void KMyMoneyView::loadAncientCurrency(const TQString& id, const TQString& name, } ft.commit(); } catch(MyMoneyException *e) { - qDebug("Error loading currency: %s", e->what().data()); + tqDebug("Error loading currency: %s", e->what().data()); delete e; } } @@ -1683,7 +1683,7 @@ void KMyMoneyView::fixFile_2(void) } } } - qDebug("%d transactions fixed in fixFile_2", count); + tqDebug("%d transactions fixed in fixFile_2", count); } void KMyMoneyView::fixFile_1(void) @@ -1866,7 +1866,7 @@ void KMyMoneyView::fixSchedule_0(MyMoneySchedule sched) MyMoneyFile::instance()->modifySchedule(sched); } } catch(MyMoneyException *e) { - qWarning("Unable to update broken schedule: %s", e->what().latin1()); + tqWarning("Unable to update broken schedule: %s", e->what().latin1()); delete e; } } @@ -2082,7 +2082,7 @@ void KMyMoneyView::fixTransactions_0(void) file->modifyTransaction(*it_t); } splits = (*it_t).splits(); // update local copy - qDebug("Fixed credit card assignment in %s", (*it_t).id().data()); + tqDebug("Fixed credit card assignment in %s", (*it_t).id().data()); } #endif @@ -2104,7 +2104,7 @@ void KMyMoneyView::fixTransactions_0(void) (*it_s).setAction(MyMoneySplit::ActionInterest); (*it_t).modifySplit(*it_s); file->modifyTransaction(*it_t); - qDebug("Fixed interest action in %s", (*it_t).id().data()); + tqDebug("Fixed interest action in %s", (*it_t).id().data()); } // if it does not reference an interest account, it must not be // of type ActionInterest @@ -2114,7 +2114,7 @@ void KMyMoneyView::fixTransactions_0(void) (*it_s).setAction(defaultAction); (*it_t).modifySplit(*it_s); file->modifyTransaction(*it_t); - qDebug("Fixed interest action in %s", (*it_t).id().data()); + tqDebug("Fixed interest action in %s", (*it_t).id().data()); } } @@ -2134,14 +2134,14 @@ void KMyMoneyView::fixTransactions_0(void) try { int fract = splitAccount.fraction(); if((*it_s).shares() != (*it_s).shares().convert(fract)) { - qDebug("adjusting fraction in %s,%s", (*it_t).id().data(), (*it_s).id().data()); + tqDebug("adjusting fraction in %s,%s", (*it_t).id().data(), (*it_s).id().data()); (*it_s).setShares((*it_s).shares().convert(fract)); (*it_s).setValue((*it_s).value().convert(fract)); (*it_t).modifySplit(*it_s); file->modifyTransaction(*it_t); } } catch(MyMoneyException* e) { - qDebug("Missing security '%s', split not altered", splitAccount.currencyId().data()); + tqDebug("Missing security '%s', split not altered", splitAccount.currencyId().data()); delete e; } } @@ -2164,7 +2164,7 @@ void KMyMoneyView::fixTransactions_0(void) void KMyMoneyView::fixDuplicateAccounts_0(MyMoneyTransaction& t) { - qDebug("Duplicate account in transaction %s", t.id().data()); + tqDebug("Duplicate account in transaction %s", t.id().data()); } void KMyMoneyView::slotPrintView(void) diff --git a/kmymoney2/views/kpayeesview.cpp b/kmymoney2/views/kpayeesview.cpp index 11326da..4e21042 100644 --- a/kmymoney2/views/kpayeesview.cpp +++ b/kmymoney2/views/kpayeesview.cpp @@ -637,7 +637,7 @@ void KPayeesView::slotSelectPayee(void) showTransactions(); } catch(MyMoneyException *e) { - qDebug("exception during display of payee: %s at %s:%ld", e->what().latin1(), e->file().latin1(), e->line()); + tqDebug("exception during display of payee: %s at %s:%ld", e->what().latin1(), e->file().latin1(), e->line()); m_transactionView->clear(); m_payee = MyMoneyPayee(); delete e; @@ -1083,7 +1083,7 @@ void KPayeesView::slotSelectPayeeAndTransaction(const TQString& payeeId, const T } } catch(MyMoneyException *e) { - qWarning("Unexpected exception in KPayeesView::slotSelectPayeeAndTransaction"); + tqWarning("Unexpected exception in KPayeesView::slotSelectPayeeAndTransaction"); delete e; } } diff --git a/kmymoney2/views/kreportsview.cpp b/kmymoney2/views/kreportsview.cpp index 8b43f5f..8046efa 100755 --- a/kmymoney2/views/kreportsview.cpp +++ b/kmymoney2/views/kreportsview.cpp @@ -551,10 +551,10 @@ void KReportsView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args * else if ( command == "delete" ) slotDelete(); else - qDebug("Unknown command '%s' in KReportsView::slotOpenURL()", static_cast(command)); + tqDebug("Unknown command '%s' in KReportsView::slotOpenURL()", static_cast(command)); } else { - qDebug("Unknown view '%s' in KReportsView::slotOpenURL()", view.latin1()); + tqDebug("Unknown view '%s' in KReportsView::slotOpenURL()", view.latin1()); } } @@ -673,7 +673,7 @@ void KReportsView::slotDuplicate(void) new KReportListItem( m_reportListView, dupe ); addReportTab(dupe); } catch(MyMoneyException* e) { - qDebug("Cannot add report"); + tqDebug("Cannot add report"); delete e; } } diff --git a/kmymoney2/views/kscheduledlistitem.cpp b/kmymoney2/views/kscheduledlistitem.cpp index b055b25..849b0c8 100644 --- a/kmymoney2/views/kscheduledlistitem.cpp +++ b/kmymoney2/views/kscheduledlistitem.cpp @@ -88,7 +88,7 @@ KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoney } } if(it_s == transaction.splits().end()) { - qFatal("Split for payment account not found in %s:%d.", __FILE__, __LINE__); + tqFatal("Split for payment account not found in %s:%d.", __FILE__, __LINE__); } break; diff --git a/kmymoney2/views/kscheduledview.cpp b/kmymoney2/views/kscheduledview.cpp index 07c8d57..dcf8052 100644 --- a/kmymoney2/views/kscheduledview.cpp +++ b/kmymoney2/views/kscheduledview.cpp @@ -484,7 +484,7 @@ void KScheduledView::slotSetSelectedItem(TQListViewItem* item) emit scheduleSelected(schedule); m_selectedSchedule = schedItem->scheduleId(); } catch(MyMoneyException* e) { - qDebug("KScheduledView::slotSetSelectedItem: %s", e->what().data()); + tqDebug("KScheduledView::slotSetSelectedItem: %s", e->what().data()); delete e; } } -- cgit v1.2.1