diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/util/profiler.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip |
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/util/profiler.h')
-rw-r--r-- | libktorrent/util/profiler.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libktorrent/util/profiler.h b/libktorrent/util/profiler.h index 6ab06e7..836f4ba 100644 --- a/libktorrent/util/profiler.h +++ b/libktorrent/util/profiler.h @@ -21,10 +21,10 @@ #define BTPROFILER_H #ifdef KT_PROFILE -#include <qptrlist.h> +#include <tqptrlist.h> #include <util/constants.h> -class QTextStream; +class TQTextStream; namespace bt @@ -34,15 +34,15 @@ namespace bt */ class Profile { - Profile* parent; - QPtrList<Profile> children; + Profile* tqparent; + TQPtrList<Profile> tqchildren; - QString name; + TQString name; double min,max,avg; Uint32 count; double start_time; public: - Profile(Profile* parent,const QString & name); + Profile(Profile* tqparent,const TQString & name); virtual ~Profile(); /** @@ -60,19 +60,19 @@ namespace bt * @param name The name of the child * @return The child */ - Profile* child(const QString & name); + Profile* child(const TQString & name); /** - * Get the parent of the current profile. + * Get the tqparent of the current profile. */ - Profile* getParent() const {return parent;} + Profile* getParent() const {return tqparent;} /** * Save profile information to a file. * @param out Text stream to write to * @param base Base path of the profiles */ - void save(QTextStream & out,const QString & base); + void save(TQTextStream & out,const TQString & base); }; /** @@ -91,9 +91,9 @@ namespace bt public: virtual ~Profiler(); - void start(const QString & s); + void start(const TQString & s); void end(); - void saveToFile(const QString & fn); + void saveToFile(const TQString & fn); static Profiler & instance() {return inst;} }; |