From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/listbase.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libkcal/listbase.h') diff --git a/libkcal/listbase.h b/libkcal/listbase.h index 71a22816..2ce1dfa1 100644 --- a/libkcal/listbase.h +++ b/libkcal/listbase.h @@ -21,33 +21,33 @@ #ifndef KCAL_LISTBASE_H #define KCAL_LISTBASE_H -#include +#include namespace KCal { /** This class provides a template for lists of pointers. - It extends QValueList by auto delete funtionality known from QPtrList. + It extends TQValueList by auto delete funtionality known from TQPtrList. */ template -class ListBase : public QValueList +class ListBase : public TQValueList { public: ListBase() - : QValueList(), mAutoDelete( false ) + : TQValueList(), mAutoDelete( false ) { } ListBase( const ListBase &l ) - : QValueList( l ), mAutoDelete( false ) + : TQValueList( l ), mAutoDelete( false ) { } ~ListBase() { if ( mAutoDelete ) { - QValueListIterator it; - for( it = QValueList::begin(); it != QValueList::end(); ++it ) { + TQValueListIterator it; + for( it = TQValueList::begin(); it != TQValueList::end(); ++it ) { delete *it; } } @@ -56,7 +56,7 @@ class ListBase : public QValueList ListBase &operator=( const ListBase &l ) { if ( this == &l ) return *this; - QValueList::operator=( l ); + TQValueList::operator=( l ); return *this; } @@ -67,8 +67,8 @@ class ListBase : public QValueList bool removeRef( T *t ) { - QValueListIterator it = find( t ); - if ( it == QValueList::end() ) { + TQValueListIterator it = find( t ); + if ( it == TQValueList::end() ) { return false; } else { if ( mAutoDelete ) delete t; @@ -80,12 +80,12 @@ class ListBase : public QValueList void clearAll() { if ( mAutoDelete ) { - for ( QValueListIterator it = QValueList::begin(); - it != QValueList::end(); ++it ) { + for ( TQValueListIterator it = TQValueList::begin(); + it != TQValueList::end(); ++it ) { delete *it; } } - QValueList::clear(); + TQValueList::clear(); } private: -- cgit v1.2.3