summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/registeritem.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/registeritem.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/registeritem.cpp')
-rw-r--r--kmymoney2/widgets/registeritem.cpp14
1 files changed, 7 insertions, 7 deletions
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;
}