diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/listbase.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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: |