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/kmymoney2.cpp | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'kmymoney2/kmymoney2.cpp') diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp index e47cc76..289933d 100644 --- a/kmymoney2/kmymoney2.cpp +++ b/kmymoney2/kmymoney2.cpp @@ -518,7 +518,7 @@ KAction* KMyMoney2App::action(const TQString& actionName) const if(p) return p; - qWarning("Action with name '%s' not found!", actionName.latin1()); + tqWarning("Action with name '%s' not found!", actionName.latin1()); return &dummyAction; } @@ -532,13 +532,13 @@ KToggleAction* KMyMoney2App::toggleAction(const TQString& actionName) const if(q) { KToggleAction* p = dynamic_cast(q); if(!p) { - qWarning("Action '%s' is not of type KToggleAction", actionName.latin1()); + tqWarning("Action '%s' is not of type KToggleAction", actionName.latin1()); p = &dummyAction; } return p; } - qWarning("Action with name '%s' not found!", actionName.latin1()); + tqWarning("Action with name '%s' not found!", actionName.latin1()); return &dummyAction; } @@ -648,7 +648,7 @@ void KMyMoney2App::slotPerformanceTest(void) TQTime timer; MyMoneyAccount acc; - qDebug("--- Starting performance tests ---"); + tqDebug("--- Starting performance tests ---"); // AccountList MyMoneyFile::instance()->preloadCache(); @@ -939,7 +939,7 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url) KMyMoney2App_stub* remoteApp = new KMyMoney2App_stub(kapp->dcopClient(), (*it), "kmymoney2app"); TQString remoteFile = remoteApp->filename(); if(!remoteApp->ok()) { - qDebug("DCOP error while calling app->filename()"); + tqDebug("DCOP error while calling app->filename()"); } else { if(remoteFile == url.url()) { duplicate = true; @@ -2036,7 +2036,7 @@ void KMyMoney2App::slotProcessExited(void) ready(); } } else { - qDebug("cp exit status is %d", proc.exitStatus()); + tqDebug("cp exit status is %d", proc.exitStatus()); m_backupResult = 1; KMessageBox::information(this, i18n("Error copying file to device"), i18n("Backup")); @@ -2073,7 +2073,7 @@ void KMyMoney2App::slotProcessExited(void) break; default: - qWarning("Unknown state for backup operation!"); + tqWarning("Unknown state for backup operation!"); progressCallback(-1, -1, TQString()); ready(); break; @@ -2614,7 +2614,7 @@ void KMyMoney2App::slotManualPriceUpdate(void) // The dialog takes care of adding the price if necessary calc.exec(); } catch(MyMoneyException* e) { - qDebug("Error in price update: %s", e->what().data()); + tqDebug("Error in price update: %s", e->what().data()); delete e; } } @@ -3059,13 +3059,13 @@ void KMyMoney2App::slotAccountEdit(void) file->addSchedule(sch); ft.commit(); } catch (MyMoneyException *f) { - qDebug("Cannot add schedule: '%s'", f->what().data()); + tqDebug("Cannot add schedule: '%s'", f->what().data()); delete f; } delete e; } } catch(MyMoneyException *e) { - qDebug("Unable to modify account %s: '%s'", m_selectedAccount.name().data(), + tqDebug("Unable to modify account %s: '%s'", m_selectedAccount.name().data(), e->what().data()); delete e; } @@ -3145,7 +3145,7 @@ void KMyMoney2App::slotAccountReconcileStart(void) ft.commit(); } catch(MyMoneyException *e) { - qWarning("interest transaction not stored: '%s'", e->what().data()); + tqWarning("interest transaction not stored: '%s'", e->what().data()); delete e; } @@ -3257,7 +3257,7 @@ void KMyMoney2App::slotAccountReconcileFinish(void) transactionList); } catch(MyMoneyException *e) { - qDebug("Unexpected exception when setting cleared to reconcile"); + tqDebug("Unexpected exception when setting cleared to reconcile"); delete e; } } @@ -3288,7 +3288,7 @@ void KMyMoney2App::slotAccountReconcilePostpone(void) m_reconciliationAccount = MyMoneyAccount(); slotUpdateActions(); } catch(MyMoneyException *e) { - qDebug("Unexpected exception when setting last reconcile info into account"); + tqDebug("Unexpected exception when setting last reconcile info into account"); delete e; ft.rollback(); m_reconciliationAccount = file->account(m_reconciliationAccount.id()); @@ -4456,7 +4456,7 @@ void KMyMoney2App::slotTransactionsNew(void) void KMyMoney2App::slotTransactionsEdit(void) { - // qDebug("KMyMoney2App::slotTransactionsEdit()"); + // tqDebug("KMyMoney2App::slotTransactionsEdit()"); // since we jump here via code, we have to make sure to react only // if the action is enabled if(kmymoney2->action("transaction_edit")->isEnabled()) { @@ -4513,7 +4513,7 @@ void KMyMoney2App::slotTransactionsCancel(void) if(kmymoney2->action("transaction_cancel")->isEnabled()) { // make sure, we block the enter function action("transaction_enter")->setEnabled(false); - // qDebug("KMyMoney2App::slotTransactionsCancel"); + // tqDebug("KMyMoney2App::slotTransactionsCancel"); deleteTransactionEditor(); slotUpdateActions(); } @@ -4524,7 +4524,7 @@ void KMyMoney2App::slotTransactionsEnter(void) // since we jump here via code, we have to make sure to react only // if the action is enabled if(kmymoney2->action("transaction_enter")->isEnabled()) { - // qDebug("KMyMoney2App::slotTransactionsEnter"); + // tqDebug("KMyMoney2App::slotTransactionsEnter"); if(m_transactionEditor) { TQString accountId = m_selectedAccount.id(); TQString newId; @@ -4550,7 +4550,7 @@ void KMyMoney2App::slotTransactionsCancelOrEnter(bool& okToSelect) if(!oneTime) { oneTime = true; TQString dontShowAgain = "CancelOrEditTransaction"; - // qDebug("KMyMoney2App::slotCancelOrEndEdit"); + // tqDebug("KMyMoney2App::slotCancelOrEndEdit"); if(m_transactionEditor) { if(KMyMoneyGlobalSettings::focusChangeIsEnter() && kmymoney2->action("transaction_enter")->isEnabled()) { slotTransactionsEnter(); @@ -4788,7 +4788,7 @@ void KMyMoney2App::slotTransactionAssignNumber(void) void KMyMoney2App::slotTransactionCombine(void) { - qDebug("slotTransactionCombine() not implemented yet"); + tqDebug("slotTransactionCombine() not implemented yet"); } void KMyMoney2App::slotMoveToAccount(const TQString& id) @@ -5045,7 +5045,7 @@ void KMyMoney2App::slotShowScheduleContextMenu(void) void KMyMoney2App::slotShowAccountContextMenu(const MyMoneyObject& obj) { -// qDebug("KMyMoney2App::slotShowAccountContextMenu"); +// tqDebug("KMyMoney2App::slotShowAccountContextMenu"); if(typeid(obj) != typeid(MyMoneyAccount)) return; @@ -5461,7 +5461,7 @@ void KMyMoney2App::slotUpdateActions(void) action("investment_online_price_update")->setEnabled(true); } catch(MyMoneyException *e) { - qDebug("Error retrieving security for investment %s: %s", m_selectedInvestment.name().data(), e->what().data()); + tqDebug("Error retrieving security for investment %s: %s", m_selectedInvestment.name().data(), e->what().data()); delete e; } if(m_selectedInvestment.isClosed()) @@ -5622,7 +5622,7 @@ void KMyMoney2App::slotSelectInstitution(const MyMoneyObject& institution) return; m_selectedInstitution = dynamic_cast(institution); - // qDebug("slotSelectInstitution('%s')", m_selectedInstitution.name().data()); + // tqDebug("slotSelectInstitution('%s')", m_selectedInstitution.name().data()); slotUpdateActions(); emit institutionSelected(m_selectedInstitution); } @@ -5637,7 +5637,7 @@ void KMyMoney2App::slotSelectAccount(const MyMoneyObject& obj) if(!acc.isInvest()) m_selectedAccount = acc; - // qDebug("slotSelectAccount('%s')", m_selectedAccount.name().data()); + // tqDebug("slotSelectAccount('%s')", m_selectedAccount.name().data()); slotUpdateActions(); emit accountSelected(m_selectedAccount); } @@ -5647,7 +5647,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj) if(typeid(obj) != typeid(MyMoneyAccount)) return; - // qDebug("slotSelectInvestment('%s')", account.name().data()); + // tqDebug("slotSelectInvestment('%s')", account.name().data()); m_selectedInvestment = MyMoneyAccount(); const MyMoneyAccount& acc = dynamic_cast(obj); if(acc.isInvest()) @@ -5659,7 +5659,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj) void KMyMoney2App::slotSelectSchedule(const MyMoneySchedule& schedule) { - // qDebug("slotSelectSchedule('%s')", schedule.name().data()); + // tqDebug("slotSelectSchedule('%s')", schedule.name().data()); m_selectedSchedule = schedule; slotUpdateActions(); emit scheduleSelected(m_selectedSchedule); @@ -6198,7 +6198,7 @@ void KMyMoney2App::Private::unlinkStatementXML(void) { TQDir d("/home/thb", "kmm-statement*"); for(int i=0; i < d.count(); ++i) { - qDebug("Remove %s", d[i].data()); + tqDebug("Remove %s", d[i].data()); d.remove(TQString("/home/thb/%1").arg(d[i])); } statementXMLindex = 0; -- cgit v1.2.1