summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneyaccounttreebase.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyaccounttreebase.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
index 3491afc..48ecd28 100644
--- a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
+++ b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
@@ -46,8 +46,8 @@
#include <kmymoney/kmymoneyutils.h>
-KMyMoneyAccountTreeBase::KMyMoneyAccountTreeBase(TQWidget* tqparent, const char* name) :
- KListView(tqparent, name),
+KMyMoneyAccountTreeBase::KMyMoneyAccountTreeBase(TQWidget* parent, const char* name) :
+ KListView(parent, name),
m_accountConnections(false),
m_institutionConnections(false),
m_queuedSort(0)
@@ -170,7 +170,7 @@ const KMyMoneyAccountTreeBaseItem* KMyMoneyAccountTreeBase::findItem(const TQStr
TQListViewItem* next = p->firstChild();
if(!next) {
while((next = p->nextSibling()) == 0) {
- p = p->tqparent();
+ p = p->parent();
if(!p)
break;
}
@@ -186,7 +186,7 @@ bool KMyMoneyAccountTreeBase::dropAccountOnAccount(const MyMoneyAccount& accFrom
bool rc = false;
// it does not make sense to reparent an account to oneself
- // or to reparent it to it's current tqparent
+ // or to reparent it to it's current parent
if(accTo.id() != accFrom.id()
&& accFrom.parentAccountId() != accTo.id()) {
// Moving within a group is generally ok
@@ -287,7 +287,7 @@ void KMyMoneyAccountTreeBase::startDrag(void)
return;
}
-void KMyMoneyAccountTreeBase::slotObjectDropped(TQDropEvent* event, TQListViewItem* /* tqparent */, TQListViewItem* /* after */)
+void KMyMoneyAccountTreeBase::slotObjectDropped(TQDropEvent* event, TQListViewItem* /* parent */, TQListViewItem* /* after */)
{
m_autoopenTimer.stop();
slotStopAutoScroll();
@@ -533,8 +533,8 @@ const MyMoneyObject& KMyMoneyAccountTreeBaseItem::itemObject(void) const
return m_account;
}
-KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *tqparent, const MyMoneyInstitution& institution) :
- KListViewItem(tqparent),
+KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyInstitution& institution) :
+ KListViewItem(parent),
m_totalValue(MyMoneyMoney(0)),
m_negative(false),
m_institution(institution),
@@ -543,8 +543,8 @@ KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *tqparent, co
setName();
}
-KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *tqparent, const MyMoneyAccount& account, const MyMoneySecurity& security, const TQString& name) :
- KListViewItem(tqparent),
+KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyAccount& account, const MyMoneySecurity& security, const TQString& name) :
+ KListViewItem(parent),
m_security(security),
m_totalValue(MyMoneyMoney(0)),
m_account(account),
@@ -560,8 +560,8 @@ KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *tqparent, co
setName();
}
-KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KMyMoneyAccountTreeBaseItem *tqparent, const MyMoneyAccount& account, const TQValueList<MyMoneyPrice>& price, const MyMoneySecurity& security) :
- KListViewItem(tqparent),
+KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KMyMoneyAccountTreeBaseItem *parent, const MyMoneyAccount& account, const TQValueList<MyMoneyPrice>& price, const MyMoneySecurity& security) :
+ KListViewItem(parent),
m_price(price),
m_security(security),
m_totalValue(MyMoneyMoney(0)),
@@ -585,9 +585,9 @@ const TQString& KMyMoneyAccountTreeBaseItem::id(void) const
bool KMyMoneyAccountTreeBaseItem::isChildOf(const TQListViewItem* const item) const
{
- TQListViewItem *p = tqparent();
+ TQListViewItem *p = parent();
while(p && p != item) {
- p = p->tqparent();
+ p = p->parent();
}
return (p != 0);
}
@@ -636,7 +636,7 @@ void KMyMoneyAccountTreeBaseItem::fillColumns()
if (lv->valueColumn()<0)
return;
// show the top accounts always in total value
- if((isOpen() || m_account.accountList().count() == 0) && tqparent()) {
+ if((isOpen() || m_account.accountList().count() == 0) && parent()) {
// only show the balance, if its a different security/currency
if(m_security.id() != listView()->baseCurrency().id()) {
@@ -646,7 +646,7 @@ void KMyMoneyAccountTreeBaseItem::fillColumns()
} else {
setText(lv->balanceColumn(), " ");
- if(tqparent())
+ if(parent())
setText(lv->valueColumn(), m_totalValue.formatMoney(listView()->baseCurrency()) + " ");
else
setText(lv->valueColumn(), m_totalValue.formatMoney(listView()->baseCurrency()));
@@ -691,17 +691,17 @@ void KMyMoneyAccountTreeBaseItem::adjustTotalValue(const MyMoneyMoney& diff)
KMyMoneyAccountTreeBase* lv = dynamic_cast<KMyMoneyAccountTreeBase*>(listView());
if(!lv)
return;
- if(!firstChild() || !tqparent() || (!isOpen() && firstChild())) {
+ if(!firstChild() || !parent() || (!isOpen() && firstChild())) {
if(firstChild())
setText(lv->balanceColumn(), " ");
- if(tqparent())
+ if(parent())
setText(lv->valueColumn(), m_totalValue.formatMoney(listView()->baseCurrency()) + " ");
else
setText(lv->valueColumn(), m_totalValue.formatMoney(listView()->baseCurrency()));
}
// now make sure, the upstream accounts also get notified about the value change
- KMyMoneyAccountTreeBaseItem* p = dynamic_cast<KMyMoneyAccountTreeBaseItem*>(tqparent());
+ KMyMoneyAccountTreeBaseItem* p = dynamic_cast<KMyMoneyAccountTreeBaseItem*>(parent());
if(p != 0) {
p->adjustTotalValue(diff);
}
@@ -747,7 +747,7 @@ void KMyMoneyAccountTreeBaseItem::paintCell(TQPainter *p, const TQColorGroup & c
#ifndef KMM_DESIGNER
// display base accounts in bold
TQFont font = KMyMoneyGlobalSettings::listCellFont();
- if(!tqparent())
+ if(!parent())
font.setBold(true);
// strike out closed accounts