summaryrefslogtreecommitdiffstats
path: root/kmymoney2/kmymoney2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/kmymoney2.cpp')
-rw-r--r--kmymoney2/kmymoney2.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp
index c54012d..01dbc2c 100644
--- a/kmymoney2/kmymoney2.cpp
+++ b/kmymoney2/kmymoney2.cpp
@@ -516,7 +516,7 @@ TDEAction* KMyMoney2App::action(const TQString& actionName) const
if(p)
return p;
- tqWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning(TQString("Action with name '%1' not found!").arg(actionName));
return &dummyAction;
}
@@ -530,13 +530,13 @@ TDEToggleAction* KMyMoney2App::toggleAction(const TQString& actionName) const
if(q) {
TDEToggleAction* p = dynamic_cast<TDEToggleAction*>(q);
if(!p) {
- tqWarning("Action '%s' is not of type TDEToggleAction", actionName.latin1());
+ tqWarning(TQString("Action '%1' is not of type TDEToggleAction").arg(actionName));
p = &dummyAction;
}
return p;
}
- tqWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning(TQString("Action with name '%1' not found!").arg(actionName));
return &dummyAction;
}
@@ -2612,7 +2612,7 @@ void KMyMoney2App::slotManualPriceUpdate(void)
// The dialog takes care of adding the price if necessary
calc.exec();
} catch(MyMoneyException* e) {
- tqDebug("Error in price update: %s", e->what().data());
+ tqDebug(TQString("Error in price update: %1").arg(e->what()));
delete e;
}
}
@@ -3057,14 +3057,14 @@ void KMyMoney2App::slotAccountEdit(void)
file->addSchedule(sch);
ft.commit();
} catch (MyMoneyException *f) {
- tqDebug("Cannot add schedule: '%s'", f->what().data());
+ tqDebug(TQString("Cannot add schedule: '%1'").arg(f->what()));
delete f;
}
delete e;
}
} catch(MyMoneyException *e) {
- tqDebug("Unable to modify account %s: '%s'", m_selectedAccount.name().data(),
- e->what().data());
+ tqDebug(TQString("Unable to modify account %1: '%2'").
+ arg(m_selectedAccount.name()).arg(e->what()));
delete e;
}
}
@@ -3143,7 +3143,7 @@ void KMyMoney2App::slotAccountReconcileStart(void)
ft.commit();
} catch(MyMoneyException *e) {
- tqWarning("interest transaction not stored: '%s'", e->what().data());
+ tqWarning(TQString("interest transaction not stored: '%s'").arg(e->what()));
delete e;
}
@@ -5459,7 +5459,7 @@ void KMyMoney2App::slotUpdateActions(void)
action("investment_online_price_update")->setEnabled(true);
} catch(MyMoneyException *e) {
- tqDebug("Error retrieving security for investment %s: %s", m_selectedInvestment.name().data(), e->what().data());
+ tqDebug(TQString("Error retrieving security for investment %1: %2").arg(m_selectedInvestment.name()).arg(e->what()));
delete e;
}
if(m_selectedInvestment.isClosed())
@@ -5620,7 +5620,7 @@ void KMyMoney2App::slotSelectInstitution(const MyMoneyObject& institution)
return;
m_selectedInstitution = dynamic_cast<const MyMoneyInstitution&>(institution);
- // tqDebug("slotSelectInstitution('%s')", m_selectedInstitution.name().data());
+ // tqDebug(TQString("slotSelectInstitution('%1')").arg(m_selectedInstitution.name()));
slotUpdateActions();
emit institutionSelected(m_selectedInstitution);
}
@@ -5635,7 +5635,7 @@ void KMyMoney2App::slotSelectAccount(const MyMoneyObject& obj)
if(!acc.isInvest())
m_selectedAccount = acc;
- // tqDebug("slotSelectAccount('%s')", m_selectedAccount.name().data());
+ // tqDebug(TQString("slotSelectAccount('%1')").arg(m_selectedAccount.name()));
slotUpdateActions();
emit accountSelected(m_selectedAccount);
}
@@ -5645,7 +5645,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj)
if(typeid(obj) != typeid(MyMoneyAccount))
return;
- // tqDebug("slotSelectInvestment('%s')", account.name().data());
+ // tqDebug(TQString("slotSelectInvestment('%1')".arg(account.name()));
m_selectedInvestment = MyMoneyAccount();
const MyMoneyAccount& acc = dynamic_cast<const MyMoneyAccount&>(obj);
if(acc.isInvest())
@@ -5657,7 +5657,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj)
void KMyMoney2App::slotSelectSchedule(const MyMoneySchedule& schedule)
{
- // tqDebug("slotSelectSchedule('%s')", schedule.name().data());
+ // tqDebug(TQString("slotSelectSchedule('%1')").arg(schedule.name()));
m_selectedSchedule = schedule;
slotUpdateActions();
emit scheduleSelected(m_selectedSchedule);
@@ -6196,7 +6196,7 @@ void KMyMoney2App::Private::unlinkStatementXML(void)
{
TQDir d("/home/thb", "kmm-statement*");
for(int i=0; i < d.count(); ++i) {
- tqDebug("Remove %s", d[i].data());
+ tqDebug(TQString("Remove %1").arg(d[i]));
d.remove(TQString("/home/thb/%1").arg(d[i]));
}
statementXMLindex = 0;