-rw-r--r-- | libkcal/listbase.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libkcal/listbase.h b/libkcal/listbase.h index 085b13d..6c942ef 100644 --- a/libkcal/listbase.h +++ b/libkcal/listbase.h @@ -23,3 +23,5 @@ -#include <qvaluelist.h> +#include <q3valuelist.h> +//Added by qt3to4: +#include <Q3PtrList> @@ -33,3 +35,3 @@ namespace KCal { template<class T> -class ListBase : public QValueList<T *> +class ListBase : public Q3ValueList<T *> { @@ -37,3 +39,3 @@ class ListBase : public QValueList<T *> ListBase() - : QValueList<T *>(), mAutoDelete( false ) + : Q3ValueList<T *>(), mAutoDelete( false ) { @@ -42,3 +44,3 @@ class ListBase : public QValueList<T *> ListBase( const ListBase &l ) - : QValueList<T *>( l ), mAutoDelete( false ) + : Q3ValueList<T *>( l ), mAutoDelete( false ) { @@ -49,4 +51,4 @@ class ListBase : public QValueList<T *> if ( mAutoDelete ) { - QValueListIterator<T *> it; - for( it = QValueList<T*>::begin(); it != QValueList<T*>::end(); ++it ) { + Q3ValueListIterator<T *> it; + for( it = Q3ValueList<T*>::begin(); it != Q3ValueList<T*>::end(); ++it ) { delete *it; @@ -59,3 +61,3 @@ class ListBase : public QValueList<T *> if ( this == &l ) return *this; - QValueList<T *>::operator=( l ); + Q3ValueList<T *>::operator=( l ); return *this; @@ -70,4 +72,4 @@ class ListBase : public QValueList<T *> { - QValueListIterator<T *> it = find( t ); - if ( it == QValueList<T*>::end() ) { + Q3ValueListIterator<T *> it = find( t ); + if ( it == Q3ValueList<T*>::end() ) { return false; @@ -79,4 +81,4 @@ class ListBase : public QValueList<T *> } - void fill ( QPtrList<T> list ) { - QPtrListIterator<T> it (list); + void fill ( Q3PtrList<T> list ) { + Q3PtrListIterator<T> it (list); T *item; |