summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneychecklistitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneychecklistitem.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneychecklistitem.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmymoney2/widgets/kmymoneychecklistitem.cpp b/kmymoney2/widgets/kmymoneychecklistitem.cpp
index 8992beb..c1b9be9 100644
--- a/kmymoney2/widgets/kmymoneychecklistitem.cpp
+++ b/kmymoney2/widgets/kmymoneychecklistitem.cpp
@@ -18,8 +18,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qfont.h>
-#include <qpainter.h>
+#include <tqfont.h>
+#include <tqpainter.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -31,8 +31,8 @@
#include "kmymoneylistviewitem.h"
#include "../kmymoneyglobalsettings.h"
-KMyMoneyCheckListItem::KMyMoneyCheckListItem(QListView* parent, const QString& txt, const QString& key, const QString& id, Type type) :
- QCheckListItem(parent, txt, type),
+KMyMoneyCheckListItem::KMyMoneyCheckListItem(TQListView* tqparent, const TQString& txt, const TQString& key, const TQString& id, Type type) :
+ TQCheckListItem(tqparent, txt, type),
m_key(key),
m_id(id),
m_isOdd(0),
@@ -43,8 +43,8 @@ KMyMoneyCheckListItem::KMyMoneyCheckListItem(QListView* parent, const QString& t
m_key = txt;
}
-KMyMoneyCheckListItem::KMyMoneyCheckListItem(QListViewItem* parent, const QString& txt, const QString& key, const QString& id, Type type) :
- QCheckListItem(parent, txt, type),
+KMyMoneyCheckListItem::KMyMoneyCheckListItem(TQListViewItem* tqparent, const TQString& txt, const TQString& key, const TQString& id, Type type) :
+ TQCheckListItem(tqparent, txt, type),
m_key(key),
m_id(id),
m_isOdd(0),
@@ -55,8 +55,8 @@ KMyMoneyCheckListItem::KMyMoneyCheckListItem(QListViewItem* parent, const QStrin
m_key = txt;
}
-KMyMoneyCheckListItem::KMyMoneyCheckListItem(QListView* parent, QListViewItem* after, const QString& txt, const QString& key, const QString& id, Type type) :
- QCheckListItem(parent, after, txt, type),
+KMyMoneyCheckListItem::KMyMoneyCheckListItem(TQListView* tqparent, TQListViewItem* after, const TQString& txt, const TQString& key, const TQString& id, Type type) :
+ TQCheckListItem(tqparent, after, txt, type),
m_key(key),
m_id(id),
m_isOdd(0),
@@ -71,7 +71,7 @@ KMyMoneyCheckListItem::~KMyMoneyCheckListItem()
{
}
-QString KMyMoneyCheckListItem::key(int column, bool ascending) const
+TQString KMyMoneyCheckListItem::key(int column, bool ascending) const
{
Q_UNUSED(ascending);
@@ -85,20 +85,20 @@ void KMyMoneyCheckListItem::stateChange(bool state)
emit stateChanged(state);
}
-void KMyMoneyCheckListItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
+void KMyMoneyCheckListItem::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());
// write the groups in bold
- QFont f = p->font();
+ TQFont f = p->font();
f.setBold(!isSelectable());
p->setFont(f);
- QCheckListItem::paintCell(p, _cg, column, width, alignment);
+ TQCheckListItem::paintCell(p, _cg, column, width, tqalignment);
}
-const QColor KMyMoneyCheckListItem::backgroundColor()
+const TQColor KMyMoneyCheckListItem::backgroundColor()
{
return isAlternate() ? KMyMoneyGlobalSettings::listBGColor() : KMyMoneyGlobalSettings::listColor();
}
@@ -118,15 +118,15 @@ bool KMyMoneyCheckListItem::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());