From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'libkcal/listbase.h') diff --git a/libkcal/listbase.h b/libkcal/listbase.h index 085b13d..6c942ef 100644 --- a/libkcal/listbase.h +++ b/libkcal/listbase.h @@ -21,7 +21,9 @@ #ifndef KCAL_LISTBASE_H #define KCAL_LISTBASE_H -#include +#include +//Added by qt3to4: +#include namespace KCal { class Event; @@ -31,24 +33,24 @@ namespace KCal { *> by auto delete funtionality known from QPtrList. */ template -class ListBase : public QValueList +class ListBase : public Q3ValueList { public: ListBase() - : QValueList(), mAutoDelete( false ) + : Q3ValueList(), mAutoDelete( false ) { } ListBase( const ListBase &l ) - : QValueList( l ), mAutoDelete( false ) + : Q3ValueList( l ), mAutoDelete( false ) { } ~ListBase() { if ( mAutoDelete ) { - QValueListIterator it; - for( it = QValueList::begin(); it != QValueList::end(); ++it ) { + Q3ValueListIterator it; + for( it = Q3ValueList::begin(); it != Q3ValueList::end(); ++it ) { delete *it; } } @@ -57,7 +59,7 @@ class ListBase : public QValueList ListBase &operator=( const ListBase &l ) { if ( this == &l ) return *this; - QValueList::operator=( l ); + Q3ValueList::operator=( l ); return *this; } @@ -68,8 +70,8 @@ class ListBase : public QValueList bool removeRef( T *t ) { - QValueListIterator it = find( t ); - if ( it == QValueList::end() ) { + Q3ValueListIterator it = find( t ); + if ( it == Q3ValueList::end() ) { return false; } else { if ( mAutoDelete ) delete t; @@ -77,8 +79,8 @@ class ListBase : public QValueList return true; } } - void fill ( QPtrList list ) { - QPtrListIterator it (list); + void fill ( Q3PtrList list ) { + Q3PtrListIterator it (list); T *item; while ( (item = it.current()) != 0 ) { append( item ); -- cgit v0.9.0.2