summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneychecklistitem.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/kmymoneychecklistitem.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/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());