From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp') diff --git a/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp b/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp index 684997e..6bfd1c2 100644 --- a/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp +++ b/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp @@ -18,10 +18,10 @@ // ---------------------------------------------------------------------------- // QT Includes -#include -#include -#include -#include +#include +#include +#include +#include // ---------------------------------------------------------------------------- // KDE Includes @@ -33,8 +33,8 @@ #include -KMyMoneyForecastListViewItem::KMyMoneyForecastListViewItem (QListView* parent, QListViewItem* after, bool isNegative) : - KListViewItem(parent, after), +KMyMoneyForecastListViewItem::KMyMoneyForecastListViewItem (TQListView* tqparent, TQListViewItem* after, bool isNegative) : + KListViewItem(tqparent, after), m_negative(isNegative) { } @@ -43,18 +43,18 @@ KMyMoneyForecastListViewItem::~KMyMoneyForecastListViewItem() { } -void KMyMoneyForecastListViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) +void KMyMoneyForecastListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) { - QColorGroup _cg = cg; - QColor textColour; + TQColorGroup _cg = cg; + TQColor textColour; if(m_negative == true) { textColour = KMyMoneyGlobalSettings::listNegativeValueColor(); //if the item is marked is marked as negative, all columns will be painted negative } else { textColour = m_columnsColor[column]; //otherwise, respect the color for each column } - _cg.setColor(QColorGroup::Text, textColour); + _cg.setColor(TQColorGroup::Text, textColour); - KListViewItem::paintCell(p, _cg, column, width, alignment); + KListViewItem::paintCell(p, _cg, column, width, tqalignment); } void KMyMoneyForecastListViewItem::setNegative(bool isNegative) @@ -62,13 +62,13 @@ void KMyMoneyForecastListViewItem::setNegative(bool isNegative) m_negative = isNegative; } -void KMyMoneyForecastListViewItem::setText( int column, const QString &text, const bool &negative) +void KMyMoneyForecastListViewItem::setText( int column, const TQString &text, const bool &negative) { //if negative set the map to negative color according to KMyMoneySettings if(negative) { m_columnsColor[column] = KMyMoneyGlobalSettings::listNegativeValueColor(); } else { - m_columnsColor[column] = QColorGroup::Text; + m_columnsColor[column] = TQColorGroup::Text; } KListViewItem::setText(column, text); -- cgit v1.2.1