|
|
|
@ -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;
|
|
|
|
|