From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: 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 --- kmymoney2/widgets/registeritem.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kmymoney2/widgets/registeritem.cpp') diff --git a/kmymoney2/widgets/registeritem.cpp b/kmymoney2/widgets/registeritem.cpp index 6ef082f..0a67fe2 100644 --- a/kmymoney2/widgets/registeritem.cpp +++ b/kmymoney2/widgets/registeritem.cpp @@ -31,7 +31,7 @@ using namespace KMyMoneyRegister; -QDate RegisterItem::nullDate; +TQDate RegisterItem::nullDate; MyMoneyMoney RegisterItem::nullValue; RegisterItem::RegisterItem() : @@ -42,13 +42,13 @@ RegisterItem::RegisterItem() : init(); } -RegisterItem::RegisterItem(Register* parent) : - m_parent(parent), +RegisterItem::RegisterItem(Register* tqparent) : + m_parent(tqparent), m_prev(0), m_next(0) { init(); - parent->addItem(this); + tqparent->addItem(this); } void RegisterItem::init(void) @@ -64,9 +64,9 @@ RegisterItem::~RegisterItem() m_parent->removeItem(this); } -void RegisterItem::setParent(Register* parent) +void RegisterItem::setParent(Register* tqparent) { - m_parent = parent; + m_parent = tqparent; } void RegisterItem::setNumRowsRegister(int rows) @@ -111,6 +111,6 @@ int RegisterItem::rowHeightHint(void) const return m_parent->rowHeightHint(); } - QFontMetrics fm( KMyMoneyGlobalSettings::listCellFont() ); + TQFontMetrics fm( KMyMoneyGlobalSettings::listCellFont() ); return fm.lineSpacing()+6; } -- cgit v1.2.1