00001 /*************************************************************************** 00002 kmymoneyforecastlistviewitem.h 00003 ------------------- 00004 begin : Sun Nov 25 2007 00005 copyright : (C) 2007 by Alvaro Soliverez 00006 email : asoliverez@gmail.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KMYMONEYFORECASTLISTVIEWITEM_H 00019 #define KMYMONEYFORECASTLISTVIEWITEM_H 00020 00021 // ---------------------------------------------------------------------------- 00022 // QT Includes 00023 00024 #include <qobject.h> 00025 00026 // ---------------------------------------------------------------------------- 00027 // KDE Includes 00028 00029 #include <klistview.h> 00030 00031 // ---------------------------------------------------------------------------- 00032 // Project Includes 00033 00040 class KMyMoneyForecastListViewItem : public KListViewItem 00041 { 00042 public: 00043 00044 KMyMoneyForecastListViewItem(QListView* parent, QListViewItem* after, bool isNegative); 00045 00046 ~KMyMoneyForecastListViewItem(); 00047 00048 void setNegative(bool isNegative); 00049 00050 void setText( int column, const QString &text, const bool &negative = false ); 00051 00055 void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment); 00056 00057 00058 private: 00059 00060 bool m_negative; 00061 00062 QMap<int, QColor> m_columnsColor; 00063 }; 00064 00065 #endif