Removed obsolete Qt2's TQList/TQListIterator classes and replaced

with TQt3's TQPtrList/TQPtrListIterator ones.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent 19da58656a
commit b2cb8fdee2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -25,18 +25,18 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT4 #ifdef USE_QT4
// template <typename T> // template <typename T>
// TQListIterator<T>::TQListIterator(const QList<T> &t) { // TQPtrListIterator<T>::TQPtrListIterator(const QList<T> &t) {
// index = 0; // index = 0;
// list = t; // list = t;
// } // }
// //
// template <typename T> // template <typename T>
// TQListIterator<T>::~TQListIterator() { // TQPtrListIterator<T>::~TQPtrListIterator() {
// // // //
// } // }
// template <typename T> // template <typename T>
// T TQListIterator<T>::current() { // T TQPtrListIterator<T>::current() {
// if ((index >= 0) && (index < list->size())) { // if ((index >= 0) && (index < list->size())) {
// return list->at(index); // return list->at(index);
// } // }

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

@ -575,7 +575,6 @@ Boston, MA 02110-1301, USA.
#define TQLineEdit QLineEdit #define TQLineEdit QLineEdit
#define TQValidator QValidator #define TQValidator QValidator
#define TQListBox QListBox #define TQListBox QListBox
#define TQList QList
#define TQComboBoxData QComboBoxData #define TQComboBoxData QComboBoxData
#define TQComboTableItem QComboTableItem #define TQComboTableItem QComboTableItem
#define TQWheelEvent QWheelEvent #define TQWheelEvent QWheelEvent

Loading…
Cancel
Save