|
|
@ -26,7 +26,7 @@ Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
|
|
|
|
|
|
|
// Implement the TQListIterator class
|
|
|
|
// Implement the TQPtrListIterator class
|
|
|
|
// For Qt4, this is a combination of the QList::iterator and QMutableListIterator classes,
|
|
|
|
// For Qt4, this is a combination of the QList::iterator and QMutableListIterator classes,
|
|
|
|
// with the constructor from QMutableListIterator used primarily
|
|
|
|
// with the constructor from QMutableListIterator used primarily
|
|
|
|
|
|
|
|
|
|
|
@ -34,13 +34,13 @@ Boston, MA 02110-1301, USA.
|
|
|
|
#include <Qt/ntqlist.h>
|
|
|
|
#include <Qt/ntqlist.h>
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
template <typename T>
|
|
|
|
//class TQListIterator : public QList<T>::iterator
|
|
|
|
//class TQPtrListIterator : public QList<T>::iterator
|
|
|
|
//class TQListIterator : public QMutableListIterator
|
|
|
|
//class TQPtrListIterator : public QMutableListIterator
|
|
|
|
class TQListIterator
|
|
|
|
class TQPtrListIterator
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
inline TQListIterator(const QList<T> &t) {index = 0; list = &t;}
|
|
|
|
inline TQPtrListIterator(const QList<T> &t) {index = 0; list = &t;}
|
|
|
|
inline ~TQListIterator() {}
|
|
|
|
inline ~TQPtrListIterator() {}
|
|
|
|
|
|
|
|
|
|
|
|
inline T current() {
|
|
|
|
inline T current() {
|
|
|
|
if ((index >= 0) && (index < list->size())) {
|
|
|
|
if ((index >= 0) && (index < list->size())) {
|
|
|
|