summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kscheduledlistitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/kscheduledlistitem.cpp')
-rw-r--r--kmymoney2/views/kscheduledlistitem.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmymoney2/views/kscheduledlistitem.cpp b/kmymoney2/views/kscheduledlistitem.cpp
index 6ba0b56..d48b881 100644
--- a/kmymoney2/views/kscheduledlistitem.cpp
+++ b/kmymoney2/views/kscheduledlistitem.cpp
@@ -23,8 +23,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qpainter.h>
-#include <qstyle.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -42,8 +42,8 @@
#include "../kmymoneyglobalsettings.h"
#include "../kmymoneyutils.h"
-KScheduledListItem::KScheduledListItem(KListView *parent, const QString& name, const QPixmap& pixmap, const QString& sortKey) :
- KListViewItem(parent, name),
+KScheduledListItem::KScheduledListItem(KListView *tqparent, const TQString& name, const TQPixmap& pixmap, const TQString& sortKey) :
+ KListViewItem(tqparent, name),
m_sortKey(sortKey)
{
setPixmap(0, pixmap);
@@ -51,8 +51,8 @@ KScheduledListItem::KScheduledListItem(KListView *parent, const QString& name, c
m_sortKey = name;
}
-KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoneySchedule& schedule/*, bool even*/)
- : KListViewItem(parent)
+KScheduledListItem::KScheduledListItem(KScheduledListItem *tqparent, const MyMoneySchedule& schedule/*, bool even*/)
+ : KListViewItem(tqparent)
{
m_schedule = schedule;
m_sortKey = schedule.name();
@@ -63,7 +63,7 @@ KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoney
MyMoneyTransaction transaction = schedule.transaction();
MyMoneySplit s1 = transaction.splits()[0];
MyMoneySplit s2 = transaction.splits()[1];
- QValueList<MyMoneySplit>::ConstIterator it_s;
+ TQValueList<MyMoneySplit>::ConstIterator it_s;
MyMoneySplit split;
MyMoneyAccount acc;
@@ -130,7 +130,7 @@ KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoney
else
setText(2, "---");
m_amount = split.shares().abs();
- setText(3, QString("%1 ").arg(m_amount.formatMoney(acc, currency)));
+ setText(3, TQString("%1 ").tqarg(m_amount.formatMoney(acc, currency)));
// Do the real next payment like ms-money etc
if (schedule.isFinished())
{
@@ -154,38 +154,38 @@ KScheduledListItem::~KScheduledListItem()
{
}
-void KScheduledListItem::paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align)
+void KScheduledListItem::paintCell(TQPainter* p, const TQColorGroup& cg, int column, int width, int align)
{
- QColorGroup cg2(cg);
+ TQColorGroup cg2(cg);
- QColor textColour = KGlobalSettings::textColor();
- QFont cellFont = KMyMoneyGlobalSettings::listCellFont();
+ TQColor textColour = KGlobalSettings::textColor();
+ TQFont cellFont = KMyMoneyGlobalSettings::listCellFont();
// avoid colorizing lines that do not contain a schedule
if(!m_schedule.id().isEmpty()) {
if (m_schedule.isFinished())
- textColour = Qt::darkGreen;
+ textColour = TQt::darkGreen;
else if (m_schedule.isOverdue())
- textColour = Qt::red;
+ textColour = TQt::red;
}
- cg2.setColor(QColorGroup::Text, textColour);
+ cg2.setColor(TQColorGroup::Text, textColour);
// display group items in bold
- if (!parent())
+ if (!tqparent())
cellFont.setBold(true);
p->setFont(cellFont);
if (isAlternate())
- cg2.setColor(QColorGroup::Base, KMyMoneyGlobalSettings::listColor());
+ cg2.setColor(TQColorGroup::Base, KMyMoneyGlobalSettings::listColor());
else
- cg2.setColor(QColorGroup::Base, KMyMoneyGlobalSettings::listBGColor());
+ cg2.setColor(TQColorGroup::Base, KMyMoneyGlobalSettings::listBGColor());
- QListViewItem::paintCell(p, cg2, column, width, align);
+ TQListViewItem::paintCell(p, cg2, column, width, align);
}
-int KScheduledListItem::compare(QListViewItem* i, int col, bool ascending) const
+int KScheduledListItem::compare(TQListViewItem* i, int col, bool ascending) const
{
KScheduledListItem* item = dynamic_cast<KScheduledListItem*>(i);
int rc;