Removed obsolete Qt2's TQList/TQListIterator classes and replaced

with TQt3's TQPtrList/TQPtrListIterator ones.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 38f46e7137)
r14.0.x
Michele Calgaro 6 years ago committed by Slávek Banko
parent fdf40193a3
commit 9757aeb46e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

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

@ -4160,8 +4160,6 @@ const TQString MyMoneyDbDef::generateSQL (const TQString& driver) const {
MyMoneyDbTable::field_iterator act;
// do the following in reverse so the 'formatted' fields are
// correctly handled.
// Hmm, how does one use a TQValueListIterator in reverse
// It'll be okay in TQt4 with TQListIterator
for (act = ac.end(), --act; act != ac.begin(); --act) {
TQString toReplace = (*act)->name();
toReplace.prepend(':');

@ -101,8 +101,6 @@
#endif // Q_OS_TEMP
#endif // TQT_NO_COMPAT
#define TQPtrList TQList
#define TQPtrListIterator TQListIterator
#define TQPtrVector TQVector
#define TQMemArray TQArray

Loading…
Cancel
Save