|
|
@ -159,12 +159,12 @@ void KReconcileDlg::insertTransactions(void)
|
|
|
|
creditListView->clear();
|
|
|
|
creditListView->clear();
|
|
|
|
debitListView->clear();
|
|
|
|
debitListView->clear();
|
|
|
|
|
|
|
|
|
|
|
|
TQListIterator<MyMoneyTransaction> it(m_debitsTQList);
|
|
|
|
TQPtrListIterator<MyMoneyTransaction> it(m_debitsTQList);
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
(void) new KReconcileListItem(debitListView, it.current());
|
|
|
|
(void) new KReconcileListItem(debitListView, it.current());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQListIterator<MyMoneyTransaction> it2(m_creditsTQList);
|
|
|
|
TQPtrListIterator<MyMoneyTransaction> it2(m_creditsTQList);
|
|
|
|
for ( ; it2.current(); ++it2) {
|
|
|
|
for ( ; it2.current(); ++it2) {
|
|
|
|
(void) new KReconcileListItem(creditListView, it2.current());
|
|
|
|
(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) {
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
bool transactionFound = inTransactions(it.current());
|
|
|
|
bool transactionFound = inTransactions(it.current());
|
|
|
|
if(transactionFound == false)
|
|
|
|
if(transactionFound == false)
|
|
|
|
m_debitsTQList.remove(it.current());
|
|
|
|
m_debitsTQList.remove(it.current());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQListIterator<MyMoneyTransaction> it2(m_creditsTQList);
|
|
|
|
TQPtrListIterator<MyMoneyTransaction> it2(m_creditsTQList);
|
|
|
|
for ( ; it2.current(); ++it2) {
|
|
|
|
for ( ; it2.current(); ++it2) {
|
|
|
|
bool transactionFound = inTransactions(it2.current());
|
|
|
|
bool transactionFound = inTransactions(it2.current());
|
|
|
|
if(transactionFound == false)
|
|
|
|
if(transactionFound == false)
|
|
|
@ -408,7 +408,7 @@ bool KReconcileDlg::inTransactions(MyMoneyTransaction * /*credittrans */)
|
|
|
|
/* Not used (yet?)
|
|
|
|
/* Not used (yet?)
|
|
|
|
bool KReconcileDlg::inCredits(MyMoneyTransaction *transaction)
|
|
|
|
bool KReconcileDlg::inCredits(MyMoneyTransaction *transaction)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQListIterator<MyMoneyTransaction> it(m_creditsTQList);
|
|
|
|
TQPtrListIterator<MyMoneyTransaction> it(m_creditsTQList);
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
if(transaction == it.current())
|
|
|
|
if(transaction == it.current())
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -422,7 +422,7 @@ bool KReconcileDlg::inCredits(MyMoneyTransaction *transaction)
|
|
|
|
/* Not used (yet?)
|
|
|
|
/* Not used (yet?)
|
|
|
|
bool KReconcileDlg::inDebits(MyMoneyTransaction *transaction)
|
|
|
|
bool KReconcileDlg::inDebits(MyMoneyTransaction *transaction)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQListIterator<MyMoneyTransaction> it(m_debitsTQList);
|
|
|
|
TQPtrListIterator<MyMoneyTransaction> it(m_debitsTQList);
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
for ( ; it.current(); ++it) {
|
|
|
|
if(transaction == it.current())
|
|
|
|
if(transaction == it.current())
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|