summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyforecastlistviewitem.cpp
diff options
context:
space:
mode:
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);