summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneybriefschedule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneybriefschedule.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneybriefschedule.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kmymoney2/widgets/kmymoneybriefschedule.cpp b/kmymoney2/widgets/kmymoneybriefschedule.cpp
index 82776af..c4143ca 100644
--- a/kmymoney2/widgets/kmymoneybriefschedule.cpp
+++ b/kmymoney2/widgets/kmymoneybriefschedule.cpp
@@ -23,10 +23,10 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qtoolbutton.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqtoolbutton.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -43,27 +43,27 @@
#include "kmymoneybriefschedule.h"
#include "../kmymoneyutils.h"
-KMyMoneyBriefSchedule::KMyMoneyBriefSchedule(QWidget *parent, const char *name )
- : kScheduleBriefWidget(parent,name, WStyle_Customize | WStyle_NoBorder)
+KMyMoneyBriefSchedule::KMyMoneyBriefSchedule(TQWidget *tqparent, const char *name )
+ : kScheduleBriefWidget(tqparent,name, WStyle_Customize | WStyle_NoBorder)
{
KIconLoader *ic = KGlobal::iconLoader();
- m_nextButton->setPixmap(BarIcon(QString::fromLatin1("1rightarrow")));
- m_prevButton->setPixmap(BarIcon(QString::fromLatin1("1leftarrow")));
+ m_nextButton->setPixmap(BarIcon(TQString::tqfromLatin1("1rightarrow")));
+ m_prevButton->setPixmap(BarIcon(TQString::tqfromLatin1("1leftarrow")));
- connect(m_prevButton, SIGNAL(clicked()), this, SLOT(slotPrevClicked()));
- connect(m_nextButton, SIGNAL(clicked()), this, SLOT(slotNextClicked()));
- connect(m_closeButton, SIGNAL(clicked()), this, SLOT(hide()));
- connect(m_skipButton, SIGNAL(clicked()), this, SLOT(slotSkipClicked()));
- connect(m_buttonEnter, SIGNAL(clicked()), this, SLOT(slotEnterClicked()));
+ connect(m_prevButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrevClicked()));
+ connect(m_nextButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNextClicked()));
+ connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(hide()));
+ connect(m_skipButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSkipClicked()));
+ connect(m_buttonEnter, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEnterClicked()));
KGuiItem skipGuiItem( i18n("&Skip"),
- QIconSet(ic->loadIcon("player_fwd", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(ic->loadIcon("player_fwd", KIcon::Small, KIcon::SizeSmall)),
i18n("Skip this transaction"),
i18n("Use this button to skip this transaction"));
m_skipButton->setGuiItem(skipGuiItem);
KGuiItem enterGuiItem( i18n("&Enter"),
- QIconSet(ic->loadIcon("key_enter", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(ic->loadIcon("key_enter", KIcon::Small, KIcon::SizeSmall)),
i18n("Record this transaction into the register"),
i18n("Use this button to record this transaction"));
m_buttonEnter->setGuiItem(enterGuiItem);
@@ -73,7 +73,7 @@ KMyMoneyBriefSchedule::~KMyMoneyBriefSchedule()
{
}
-void KMyMoneyBriefSchedule::setSchedules(QValueList<MyMoneySchedule> list, const QDate& date)
+void KMyMoneyBriefSchedule::setSchedules(TQValueList<MyMoneySchedule> list, const TQDate& date)
{
m_scheduleList = list;
m_date = date;
@@ -94,12 +94,12 @@ void KMyMoneyBriefSchedule::loadSchedule()
MyMoneySchedule sched = m_scheduleList[m_index];
m_indexLabel->setText(i18n("%1 of %2")
- .arg(QString::number(m_index+1))
- .arg(QString::number(m_scheduleList.count())));
+ .tqarg(TQString::number(m_index+1))
+ .tqarg(TQString::number(m_scheduleList.count())));
m_name->setText(sched.name());
m_type->setText(KMyMoneyUtils::scheduleTypeToString(sched.type()));
m_account->setText(sched.account().name());
- QString text;
+ TQString text;
MyMoneyMoney amount = sched.transaction().splitByAccount(sched.account().id()).value();
amount = amount.abs();
@@ -107,35 +107,35 @@ void KMyMoneyBriefSchedule::loadSchedule()
{
int transactions = sched.paymentDates(m_date, sched.endDate()).count()-1;
text = i18n("Payment on %1 for %2 with %3 transactions remaining occuring %4.")
- .arg(KGlobal::locale()->formatDate(m_date, true))
- .arg(amount.formatMoney(sched.account().fraction()))
- .arg(QString::number(transactions))
- .arg(i18n(sched.occurenceToString()));
+ .tqarg(KGlobal::locale()->formatDate(m_date, true))
+ .tqarg(amount.formatMoney(sched.account().fraction()))
+ .tqarg(TQString::number(transactions))
+ .tqarg(i18n(sched.occurenceToString()));
} else {
text = i18n("Payment on %1 for %2 occuring %4.")
- .arg(KGlobal::locale()->formatDate(m_date, true))
- .arg(amount.formatMoney(sched.account().fraction()))
- .arg(i18n(sched.occurenceToString()));
+ .tqarg(KGlobal::locale()->formatDate(m_date, true))
+ .tqarg(amount.formatMoney(sched.account().fraction()))
+ .tqarg(i18n(sched.occurenceToString()));
}
- if (m_date < QDate::currentDate())
+ if (m_date < TQDate::tqcurrentDate())
{
if (sched.isOverdue())
{
- QDate startD = (sched.lastPayment().isValid()) ?
+ TQDate startD = (sched.lastPayment().isValid()) ?
sched.lastPayment() :
sched.startDate();
if (m_date.isValid())
startD = m_date;
- int days = startD.daysTo(QDate::currentDate());
- int transactions = sched.paymentDates(startD, QDate::currentDate()).count();
+ int days = startD.daysTo(TQDate::tqcurrentDate());
+ int transactions = sched.paymentDates(startD, TQDate::tqcurrentDate()).count();
text += "<br><font color=red>";
text += i18n("%1 days overdue (%2 occurences).")
- .arg(QString::number(days))
- .arg(QString::number(transactions));
+ .tqarg(TQString::number(days))
+ .tqarg(TQString::number(transactions));
text += "</color>";
}
}