diff options
Diffstat (limited to 'qtinterface/interface_tqt3')
-rw-r--r-- | qtinterface/interface_tqt3/tqlistiterator.cpp | 6 | ||||
-rw-r--r-- | qtinterface/interface_tqt3/tqlistiterator.h | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/qtinterface/interface_tqt3/tqlistiterator.cpp b/qtinterface/interface_tqt3/tqlistiterator.cpp index 86255d0..ffc97ec 100644 --- a/qtinterface/interface_tqt3/tqlistiterator.cpp +++ b/qtinterface/interface_tqt3/tqlistiterator.cpp @@ -25,18 +25,18 @@ Boston, MA 02110-1301, USA. #ifdef USE_QT4 // template <typename T> -// TQListIterator<T>::TQListIterator(const QList<T> &t) { +// TQPtrListIterator<T>::TQPtrListIterator(const QList<T> &t) { // index = 0; // list = t; // } // // template <typename T> -// TQListIterator<T>::~TQListIterator() { +// TQPtrListIterator<T>::~TQPtrListIterator() { // // // } // template <typename T> -// T TQListIterator<T>::current() { +// T TQPtrListIterator<T>::current() { // if ((index >= 0) && (index < list->size())) { // return list->at(index); // } diff --git a/qtinterface/interface_tqt3/tqlistiterator.h b/qtinterface/interface_tqt3/tqlistiterator.h index c4a0e60..fbe7c9d 100644 --- a/qtinterface/interface_tqt3/tqlistiterator.h +++ b/qtinterface/interface_tqt3/tqlistiterator.h @@ -26,7 +26,7 @@ Boston, MA 02110-1301, USA. #ifdef USE_QT4 -// Implement the TQListIterator class +// Implement the TQPtrListIterator class // For Qt4, this is a combination of the QList::iterator and QMutableListIterator classes, // with the constructor from QMutableListIterator used primarily @@ -34,13 +34,13 @@ Boston, MA 02110-1301, USA. #include <Qt/ntqlist.h> template <typename T> -//class TQListIterator : public QList<T>::iterator -//class TQListIterator : public QMutableListIterator -class TQListIterator +//class TQPtrListIterator : public QList<T>::iterator +//class TQPtrListIterator : public QMutableListIterator +class TQPtrListIterator { public: - inline TQListIterator(const QList<T> &t) {index = 0; list = &t;} - inline ~TQListIterator() {} + inline TQPtrListIterator(const QList<T> &t) {index = 0; list = &t;} + inline ~TQPtrListIterator() {} inline T current() { if ((index >= 0) && (index < list->size())) { |