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
// 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);
// }

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

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

Loading…
Cancel
Save