diff options
Diffstat (limited to 'kmymoney2/widgets/kmymoneybriefschedule.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneybriefschedule.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kmymoney2/widgets/kmymoneybriefschedule.cpp b/kmymoney2/widgets/kmymoneybriefschedule.cpp index d77287b..a3e3a5f 100644 --- a/kmymoney2/widgets/kmymoneybriefschedule.cpp +++ b/kmymoney2/widgets/kmymoneybriefschedule.cpp @@ -25,7 +25,7 @@ #include <tqlabel.h> #include <tqlineedit.h> -#include <textedit.h> +#include <tqtextedit.h> #include <tqtoolbutton.h> // ---------------------------------------------------------------------------- @@ -47,8 +47,8 @@ KMyMoneyBriefSchedule::KMyMoneyBriefSchedule(TQWidget *parent, const char *name : kScheduleBriefWidget(parent,name, WStyle_Customize | WStyle_NoBorder) { KIconLoader *ic = KGlobal::iconLoader(); - m_nextButton->setPixmap(BarIcon(TQString::fromLatin1("1rightarrow"))); - m_prevButton->setPixmap(BarIcon(TQString::fromLatin1("1leftarrow"))); + m_nextButton->setPixmap(BarIcon(TQString::tqfromLatin1("1rightarrow"))); + m_prevButton->setPixmap(BarIcon(TQString::tqfromLatin1("1leftarrow"))); connect(m_prevButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrevClicked())); connect(m_nextButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNextClicked())); @@ -94,8 +94,8 @@ void KMyMoneyBriefSchedule::loadSchedule() MyMoneySchedule sched = m_scheduleList[m_index]; m_indexLabel->setText(i18n("%1 of %2") - .arg(TQString::number(m_index+1)) - .arg(TQString::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()); @@ -107,18 +107,18 @@ 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(TQString::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 < TQDate::currentDate()) + if (m_date < TQDate::tqcurrentDate()) { if (sched.isOverdue()) { @@ -129,13 +129,13 @@ void KMyMoneyBriefSchedule::loadSchedule() if (m_date.isValid()) startD = m_date; - int days = startD.daysTo(TQDate::currentDate()); - int transactions = sched.paymentDates(startD, TQDate::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(TQString::number(days)) - .arg(TQString::number(transactions)); + .tqarg(TQString::number(days)) + .tqarg(TQString::number(transactions)); text += "</color>"; } } |