diff options
Diffstat (limited to 'libkcal/listbase.h')
-rw-r--r-- | libkcal/listbase.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkcal/listbase.h b/libkcal/listbase.h index 71a228168..2ce1dfa14 100644 --- a/libkcal/listbase.h +++ b/libkcal/listbase.h @@ -21,33 +21,33 @@ #ifndef KCAL_LISTBASE_H #define KCAL_LISTBASE_H -#include <qvaluelist.h> +#include <tqvaluelist.h> namespace KCal { /** This class provides a template for lists of pointers. - It extends QValueList<T *> by auto delete funtionality known from QPtrList. + It extends TQValueList<T *> by auto delete funtionality known from TQPtrList. */ template<class T> -class ListBase : public QValueList<T *> +class ListBase : public TQValueList<T *> { public: ListBase() - : QValueList<T *>(), mAutoDelete( false ) + : TQValueList<T *>(), mAutoDelete( false ) { } ListBase( const ListBase &l ) - : QValueList<T *>( l ), mAutoDelete( false ) + : TQValueList<T *>( l ), mAutoDelete( false ) { } ~ListBase() { if ( mAutoDelete ) { - QValueListIterator<T *> it; - for( it = QValueList<T*>::begin(); it != QValueList<T*>::end(); ++it ) { + TQValueListIterator<T *> it; + for( it = TQValueList<T*>::begin(); it != TQValueList<T*>::end(); ++it ) { delete *it; } } @@ -56,7 +56,7 @@ class ListBase : public QValueList<T *> ListBase &operator=( const ListBase &l ) { if ( this == &l ) return *this; - QValueList<T *>::operator=( l ); + TQValueList<T *>::operator=( l ); return *this; } @@ -67,8 +67,8 @@ class ListBase : public QValueList<T *> bool removeRef( T *t ) { - QValueListIterator<T *> it = find( t ); - if ( it == QValueList<T*>::end() ) { + TQValueListIterator<T *> it = find( t ); + if ( it == TQValueList<T*>::end() ) { return false; } else { if ( mAutoDelete ) delete t; @@ -80,12 +80,12 @@ class ListBase : public QValueList<T *> void clearAll() { if ( mAutoDelete ) { - for ( QValueListIterator<T*> it = QValueList<T*>::begin(); - it != QValueList<T*>::end(); ++it ) { + for ( TQValueListIterator<T*> it = TQValueList<T*>::begin(); + it != TQValueList<T*>::end(); ++it ) { delete *it; } } - QValueList<T*>::clear(); + TQValueList<T*>::clear(); } private: |