summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 23:25:55 +0900
commit38f46e7137a77df91eb38133921f6536d847ba81 (patch)
treeda82edace1671ec384e59ddd5f82a3f8ae9714c9 /kmymoney2/dialogs
parent677bfebe692ba915de885f430c5e03e8a1db95b1 (diff)
downloadkmymoney-38f46e7137a77df91eb38133921f6536d847ba81.tar.gz
kmymoney-38f46e7137a77df91eb38133921f6536d847ba81.zip
Removed obsolete Qt2's TQList/TQListIterator classes and replaced
with TQt3's TQPtrList/TQPtrListIterator ones. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmymoney2/dialogs')
-rw-r--r--kmymoney2/dialogs/kreconciledlg.cpp12
-rw-r--r--kmymoney2/dialogs/kreconciledlg.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/dialogs/kreconciledlg.cpp b/kmymoney2/dialogs/kreconciledlg.cpp
index c66f495..fd677b5 100644
--- a/kmymoney2/dialogs/kreconciledlg.cpp
+++ b/kmymoney2/dialogs/kreconciledlg.cpp
@@ -155,12 +155,12 @@ void KReconcileDlg::insertTransactions(void)
creditListView->clear();
debitListView->clear();
- TQListIterator<MyMoneyTransaction> it(m_debitsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it(m_debitsTQList);
for ( ; it.current(); ++it) {
(void) new KReconcileListItem(debitListView, it.current());
}
- TQListIterator<MyMoneyTransaction> it2(m_creditsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it2(m_creditsTQList);
for ( ; it2.current(); ++it2) {
(void) new KReconcileListItem(creditListView, it2.current());
}
@@ -370,14 +370,14 @@ void KReconcileDlg::reloadLists()
}
- TQListIterator<MyMoneyTransaction> it(m_debitsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it(m_debitsTQList);
for ( ; it.current(); ++it) {
bool transactionFound = inTransactions(it.current());
if(transactionFound == false)
m_debitsTQList.remove(it.current());
}
- TQListIterator<MyMoneyTransaction> it2(m_creditsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it2(m_creditsTQList);
for ( ; it2.current(); ++it2) {
bool transactionFound = inTransactions(it2.current());
if(transactionFound == false)
@@ -404,7 +404,7 @@ bool KReconcileDlg::inTransactions(MyMoneyTransaction * /*credittrans */)
/* Not used (yet?)
bool KReconcileDlg::inCredits(MyMoneyTransaction *transaction)
{
- TQListIterator<MyMoneyTransaction> it(m_creditsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it(m_creditsTQList);
for ( ; it.current(); ++it) {
if(transaction == it.current())
return true;
@@ -418,7 +418,7 @@ bool KReconcileDlg::inCredits(MyMoneyTransaction *transaction)
/* Not used (yet?)
bool KReconcileDlg::inDebits(MyMoneyTransaction *transaction)
{
- TQListIterator<MyMoneyTransaction> it(m_debitsTQList);
+ TQPtrListIterator<MyMoneyTransaction> it(m_debitsTQList);
for ( ; it.current(); ++it) {
if(transaction == it.current())
return true;
diff --git a/kmymoney2/dialogs/kreconciledlg.h b/kmymoney2/dialogs/kreconciledlg.h
index 89c4529..a1cee39 100644
--- a/kmymoney2/dialogs/kreconciledlg.h
+++ b/kmymoney2/dialogs/kreconciledlg.h
@@ -62,9 +62,9 @@ private:
//MyMoneyBank m_bankIndex;
MyMoneyAccount *m_accountIndex;
- TQList<MyMoneyTransaction> m_debitsTQList;
- TQList<MyMoneyTransaction> m_creditsTQList;
- TQList<MyMoneyTransaction> m_reconciledTransactions;
+ TQPtrList<MyMoneyTransaction> m_debitsTQList;
+ TQPtrList<MyMoneyTransaction> m_creditsTQList;
+ TQPtrList<MyMoneyTransaction> m_reconciledTransactions;
bool m_balanced; // true when the account is balanced (determined by doDifference)