summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:01:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:01:10 -0600
commita6000c6f2f1a03b34f15d1948f63f0c894f09451 (patch)
tree59a9994e4bb71bc5a74704773e677f2d2474c017 /kmymoney2/widgets/kmymoneyaccounttreebase.cpp
parentdb89d6f6d944825a20ce69bb11c23b19b2935164 (diff)
downloadkmymoney-a6000c6f2f1a03b34f15d1948f63f0c894f09451.tar.gz
kmymoney-a6000c6f2f1a03b34f15d1948f63f0c894f09451.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmymoney2/widgets/kmymoneyaccounttreebase.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyaccounttreebase.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
index fa8b5ed..f943d57 100644
--- a/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
+++ b/kmymoney2/widgets/kmymoneyaccounttreebase.cpp
@@ -47,7 +47,7 @@
#include <kmymoney/kmymoneyutils.h>
KMyMoneyAccountTreeBase::KMyMoneyAccountTreeBase(TQWidget* parent, const char* name) :
- KListView(parent, name),
+ TDEListView(parent, name),
m_accountConnections(false),
m_institutionConnections(false),
m_queuedSort(0)
@@ -82,7 +82,7 @@ KMyMoneyAccountTreeBase::KMyMoneyAccountTreeBase(TQWidget* parent, const char* n
connect(this, TQT_SIGNAL(dropped(TQDropEvent*,TQListViewItem*,TQListViewItem*)), this, TQT_SLOT(slotObjectDropped(TQDropEvent*,TQListViewItem*,TQListViewItem*)));
connect(this, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectObject(TQListViewItem*)));
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem* , const TQPoint&)), this, TQT_SLOT(slotOpenContextMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem* , const TQPoint&)), this, TQT_SLOT(slotOpenContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&,int)), this, TQT_SLOT(slotOpenObject(TQListViewItem*)));
// drag and drop timer connections
@@ -105,7 +105,7 @@ void KMyMoneyAccountTreeBase::restoreLayout(const TQString& group)
// we use equal distribution of all fields as an initial setting
// TODO this only makes the first column invisible if settings exist setColumnWidth(0, 0);
m_configGroup = group;
- KListView::restoreLayout(TDEGlobal::config(), m_configGroup);
+ TDEListView::restoreLayout(TDEGlobal::config(), m_configGroup);
}
void KMyMoneyAccountTreeBase::showType(void)
@@ -151,7 +151,7 @@ void KMyMoneyAccountTreeBase::setSectionHeader(const TQString& txt)
KMyMoneyAccountTreeBaseItem* KMyMoneyAccountTreeBase::selectedItem(void) const
{
- return dynamic_cast<KMyMoneyAccountTreeBaseItem *>(KListView::selectedItem());
+ return dynamic_cast<KMyMoneyAccountTreeBaseItem *>(TDEListView::selectedItem());
}
const KMyMoneyAccountTreeBaseItem* KMyMoneyAccountTreeBase::findItem(const TQString& id) const
@@ -332,7 +332,7 @@ void KMyMoneyAccountTreeBase::slotSelectObject(TQListViewItem* i)
}
}
-void KMyMoneyAccountTreeBase::slotOpenContextMenu(KListView* lv, TQListViewItem* i, const TQPoint&)
+void KMyMoneyAccountTreeBase::slotOpenContextMenu(TDEListView* lv, TQListViewItem* i, const TQPoint&)
{
Q_UNUSED(lv);
@@ -533,8 +533,8 @@ const MyMoneyObject& KMyMoneyAccountTreeBaseItem::itemObject(void) const
return m_account;
}
-KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyInstitution& institution) :
- KListViewItem(parent),
+KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(TDEListView *parent, const MyMoneyInstitution& institution) :
+ TDEListViewItem(parent),
m_totalValue(MyMoneyMoney(0)),
m_negative(false),
m_institution(institution),
@@ -543,8 +543,8 @@ KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, cons
setName();
}
-KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, const MyMoneyAccount& account, const MyMoneySecurity& security, const TQString& name) :
- KListViewItem(parent),
+KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(TDEListView *parent, const MyMoneyAccount& account, const MyMoneySecurity& security, const TQString& name) :
+ TDEListViewItem(parent),
m_security(security),
m_totalValue(MyMoneyMoney(0)),
m_account(account),
@@ -561,7 +561,7 @@ KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KListView *parent, cons
}
KMyMoneyAccountTreeBaseItem::KMyMoneyAccountTreeBaseItem(KMyMoneyAccountTreeBaseItem *parent, const MyMoneyAccount& account, const TQValueList<MyMoneyPrice>& price, const MyMoneySecurity& security) :
- KListViewItem(parent),
+ TDEListViewItem(parent),
m_price(price),
m_security(security),
m_totalValue(MyMoneyMoney(0)),
@@ -673,7 +673,7 @@ void KMyMoneyAccountTreeBaseItem::setOpen(bool open)
{
if (open == isOpen())
return;
- KListViewItem::setOpen(open);
+ TDEListViewItem::setOpen(open);
fillColumns();
if(listView())
@@ -731,7 +731,7 @@ int KMyMoneyAccountTreeBaseItem::compare(TQListViewItem* i, int col, bool ascend
}
}
// do standard sorting here
- return KListViewItem::compare(i, col, ascending);
+ return TDEListViewItem::compare(i, col, ascending);
}
void KMyMoneyAccountTreeBaseItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, int width, int align)
@@ -800,7 +800,7 @@ void KMyMoneyAccountTreeBase::slotActivateSort(void)
{
--m_queuedSort;
if(!m_queuedSort)
- KListView::sort();
+ TDEListView::sort();
}
void KMyMoneyAccountTreeBaseItem::setNegative(bool isNegative)
@@ -817,7 +817,7 @@ void KMyMoneyAccountTreeBaseItem::setText( int column, const TQString &text, con
m_columnsColor[column] = TQColorGroup::Text;
}
- KListViewItem::setText(column, text);
+ TDEListViewItem::setText(column, text);
}