summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kconfirmmanualenterdlg.cpp')
-rw-r--r--kmymoney2/dialogs/kconfirmmanualenterdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp b/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp
index 3c20a48..8c1678f 100644
--- a/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp
+++ b/kmymoney2/dialogs/kconfirmmanualenterdlg.cpp
@@ -18,7 +18,7 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -36,8 +36,8 @@
#include <kmymoney/kmymoneyutils.h>
#include "kconfirmmanualenterdlg.h"
-KConfirmManualEnterDlg::KConfirmManualEnterDlg(const MyMoneySchedule& schedule, QWidget* parent, const char* name) :
- KConfirmManualEnterDlgDecl(parent, name)
+KConfirmManualEnterDlg::KConfirmManualEnterDlg(const MyMoneySchedule& schedule, TQWidget* tqparent, const char* name) :
+ KConfirmManualEnterDlgDecl(tqparent, name)
{
buttonOk->setGuiItem(KStdGuiItem::ok());
buttonCancel->setGuiItem(KStdGuiItem::cancel());
@@ -53,7 +53,7 @@ KConfirmManualEnterDlg::KConfirmManualEnterDlg(const MyMoneySchedule& schedule,
void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, const MyMoneyTransaction& tn)
{
- QString messageDetail("<qt>");
+ TQString messageDetail("<qt>");
MyMoneyFile* file = MyMoneyFile::instance();
int noItemsChanged=0;
@@ -75,7 +75,7 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
try
{
- QString po, pn;
+ TQString po, pn;
if(to.splits()[0].payeeId())
po = file->payee(to.splits()[0].payeeId()).name();
if(tn.splits()[0].payeeId())
@@ -83,7 +83,7 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
if (po != pn) {
noItemsChanged++;
- messageDetail += i18n("Payee changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").arg(po).arg(pn);
+ messageDetail += i18n("Payee changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").tqarg(po).tqarg(pn);
}
#if 0
if ( (m_schedule.type() == MyMoneySchedule::TYPE_TRANSFER ||
@@ -92,7 +92,7 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
{
noItemsChanged++;
messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"")
- .arg(m_schedule.account().name()).arg(m_from->currentText()) + QString("\n");
+ .tqarg(m_schedule.account().name()).tqarg(m_from->currentText()) + TQString("\n");
}
if ( m_schedule.type() == MyMoneySchedule::TYPE_DEPOSIT &&
@@ -100,26 +100,26 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
{
noItemsChanged++;
messageDetail += i18n("Account changed. Old: \"%1\", New: \"%2\"")
- .arg(m_schedule.account().name()).arg(m_to->currentText()) + QString("\n");
+ .tqarg(m_schedule.account().name()).tqarg(m_to->currentText()) + TQString("\n");
}
#endif
if(to.splits()[0].accountId() != tn.splits()[0].accountId()) {
noItemsChanged++;
messageDetail += i18n("Account changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>")
- .arg(file->account(to.splits()[0].accountId()).name())
- .arg(file->account(tn.splits()[0].accountId()).name());
+ .tqarg(file->account(to.splits()[0].accountId()).name())
+ .tqarg(file->account(tn.splits()[0].accountId()).name());
}
if(file->isTransfer(to) && file->isTransfer(tn)) {
if(to.splits()[1].accountId() != tn.splits()[1].accountId()) {
noItemsChanged++;
messageDetail += i18n("Transfer account changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>")
- .arg(file->account(to.splits()[1].accountId()).name())
- .arg(file->account(tn.splits()[1].accountId()).name());
+ .tqarg(file->account(to.splits()[1].accountId()).name())
+ .tqarg(file->account(tn.splits()[1].accountId()).name());
}
} else {
- QString co, cn;
+ TQString co, cn;
switch(to.splitCount()) {
default:
co = i18n("Split transaction (category replacement)", "Split transaction");
@@ -142,21 +142,21 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
if (co != cn)
{
noItemsChanged++;
- messageDetail += i18n("Category changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").arg(co).arg(cn);
+ messageDetail += i18n("Category changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").tqarg(co).tqarg(cn);
}
}
- QString mo, mn;
+ TQString mo, mn;
mo = to.splits()[0].memo();
mn = tn.splits()[0].memo();
if(mo.isEmpty())
- mo = QString("<i>")+i18n("empty")+QString("</i>");
+ mo = TQString("<i>")+i18n("empty")+TQString("</i>");
if(mn.isEmpty())
- mn = QString("<i>")+i18n("empty")+QString("</i>");
+ mn = TQString("<i>")+i18n("empty")+TQString("</i>");
if (mo != mn)
{
noItemsChanged++;
- messageDetail += i18n("Memo changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").arg(mo).arg(mn);
+ messageDetail += i18n("Memo changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>").tqarg(mo).tqarg(mn);
}
const MyMoneySecurity& sec = MyMoneyFile::instance()->security(to.commodity());
@@ -166,7 +166,7 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
if (ao != an) {
noItemsChanged++;
messageDetail += i18n("Amount changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>")
- .arg(ao.formatMoney(sec.smallestAccountFraction())).arg(an.formatMoney(sec.smallestAccountFraction()));
+ .tqarg(ao.formatMoney(sec.smallestAccountFraction())).tqarg(an.formatMoney(sec.smallestAccountFraction()));
}
MyMoneySplit::reconcileFlagE fo, fn;
@@ -175,8 +175,8 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
if(fo != fn) {
noItemsChanged++;
messageDetail += i18n("Reconciliation flag changed.<br>&nbsp;&nbsp;&nbsp;Old: <b>%1</b>, New: <b>%2</b><p>")
- .arg(KMyMoneyUtils::reconcileStateToString(fo, true))
- .arg(KMyMoneyUtils::reconcileStateToString(fn, true));
+ .tqarg(KMyMoneyUtils::reconcileStateToString(fo, true))
+ .tqarg(KMyMoneyUtils::reconcileStateToString(fn, true));
}
}
catch (MyMoneyException *e)