|
|
|
@ -159,12 +159,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());
|
|
|
|
|
}
|
|
|
|
@ -374,14 +374,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)
|
|
|
|
@ -408,7 +408,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;
|
|
|
|
@ -422,7 +422,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;
|
|
|
|
|