summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
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
Diffstat (limited to 'kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp26
1 files changed, 13 insertions, 13 deletions
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 <qpalette.h>
-#include <qpen.h>
-#include <qcolor.h>
-#include <qpainter.h>
+#include <tqpalette.h>
+#include <tqpen.h>
+#include <tqcolor.h>
+#include <tqpainter.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -33,8 +33,8 @@
#include <kmymoney/kmymoneyglobalsettings.h>
-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);