|
|
@ -155,12 +155,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());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -370,14 +370,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)
|
|
|
@ -404,7 +404,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;
|
|
|
@ -418,7 +418,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;
|
|
|
|