diff options
Diffstat (limited to 'kmymoney2/widgets/kmymoneylistviewitem.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneylistviewitem.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kmymoney2/widgets/kmymoneylistviewitem.cpp b/kmymoney2/widgets/kmymoneylistviewitem.cpp index 26367ad..d85fe77 100644 --- a/kmymoney2/widgets/kmymoneylistviewitem.cpp +++ b/kmymoney2/widgets/kmymoneylistviewitem.cpp @@ -23,7 +23,7 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qpalette.h> +#include <tqpalette.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -35,8 +35,8 @@ #include "kmymoneychecklistitem.h" #include "../kmymoneyglobalsettings.h" -KMyMoneyListViewItem::KMyMoneyListViewItem(QListView* parent, const QString& txt, const QString& key, const QString& id) : - KListViewItem(parent, txt), +KMyMoneyListViewItem::KMyMoneyListViewItem(TQListView* tqparent, const TQString& txt, const TQString& key, const TQString& id) : + KListViewItem(tqparent, txt), m_key(key), m_id(id), m_isOdd(0), @@ -46,8 +46,8 @@ KMyMoneyListViewItem::KMyMoneyListViewItem(QListView* parent, const QString& txt m_key = txt; } -KMyMoneyListViewItem::KMyMoneyListViewItem(QListViewItem* parent, const QString& txt, const QString& key, const QString& id) : - KListViewItem(parent, txt), +KMyMoneyListViewItem::KMyMoneyListViewItem(TQListViewItem* tqparent, const TQString& txt, const TQString& key, const TQString& id) : + KListViewItem(tqparent, txt), m_key(key), m_id(id), m_isOdd(0), @@ -61,7 +61,7 @@ KMyMoneyListViewItem::~KMyMoneyListViewItem() { } -QString KMyMoneyListViewItem::key(int column, bool ascending) const +TQString KMyMoneyListViewItem::key(int column, bool ascending) const { Q_UNUSED(ascending); @@ -71,18 +71,18 @@ QString KMyMoneyListViewItem::key(int column, bool ascending) const } -void KMyMoneyListViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) +void KMyMoneyListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) { - QColorGroup _cg = cg; - _cg.setColor(QColorGroup::Base, backgroundColor()); + TQColorGroup _cg = cg; + _cg.setColor(TQColorGroup::Base, backgroundColor()); // make sure to bypass KListViewItem::paintCell() as // we don't like it's logic - that's why we do this // here ;-) (ipwizard) - QListViewItem::paintCell(p, _cg, column, width, alignment); + TQListViewItem::paintCell(p, _cg, column, width, tqalignment); } -const QColor KMyMoneyListViewItem::backgroundColor() +const TQColor KMyMoneyListViewItem::backgroundColor() { return isAlternate() ? KMyMoneyGlobalSettings::listBGColor() : KMyMoneyGlobalSettings::listColor(); } @@ -102,15 +102,15 @@ bool KMyMoneyListViewItem::isAlternate(void) KMyMoneyCheckListItem* clItem; KMyMoneyListViewItem* liItem; bool previous = true; - if(QListViewItem::parent()) { - clItem = dynamic_cast<KMyMoneyCheckListItem *>(QListViewItem::parent()); - liItem = dynamic_cast<KMyMoneyListViewItem*>(QListViewItem::parent()); + if(TQListViewItem::tqparent()) { + clItem = dynamic_cast<KMyMoneyCheckListItem *>(TQListViewItem::tqparent()); + liItem = dynamic_cast<KMyMoneyListViewItem*>(TQListViewItem::tqparent()); if(clItem) previous = clItem->m_isOdd; else previous = liItem->m_isOdd; - clItem = dynamic_cast<KMyMoneyCheckListItem *>(QListViewItem::parent()->firstChild()); - liItem = dynamic_cast<KMyMoneyListViewItem*>(QListViewItem::parent()->firstChild()); + clItem = dynamic_cast<KMyMoneyCheckListItem *>(TQListViewItem::tqparent()->firstChild()); + liItem = dynamic_cast<KMyMoneyListViewItem*>(TQListViewItem::tqparent()->firstChild()); } else { clItem = dynamic_cast<KMyMoneyCheckListItem *>(listView()->firstChild()); liItem = dynamic_cast<KMyMoneyListViewItem*>(listView()->firstChild()); |