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/torrent/value.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/torrent/value.h')
-rw-r--r-- | libktorrent/torrent/value.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libktorrent/torrent/value.h b/libktorrent/torrent/value.h index cd7c879..7926af4 100644 --- a/libktorrent/torrent/value.h +++ b/libktorrent/torrent/value.h @@ -20,7 +20,7 @@ #ifndef BTVALUE_H #define BTVALUE_H -#include <qstring.h> +#include <tqstring.h> #include <util/constants.h> namespace bt @@ -41,25 +41,25 @@ namespace bt Value(); Value(int val); Value(Int64 val); - Value(const QByteArray & val); + Value(const TQByteArray & val); Value(const Value & val); ~Value(); Value & operator = (const Value & val); Value & operator = (Int32 val); Value & operator = (Int64 val); - Value & operator = (const QByteArray & val); + Value & operator = (const TQByteArray & val); Type getType() const {return type;} Int32 toInt() const {return ival;} Int64 toInt64() const {return big_ival;} - QString toString() const {return QString(strval);} - QString toString(const QString & encoding) const; - QByteArray toByteArray() const {return strval;} + TQString toString() const {return TQString(strval);} + TQString toString(const TQString & encoding) const; + TQByteArray toByteArray() const {return strval;} private: Type type; Int32 ival; - QByteArray strval; + TQByteArray strval; Int64 big_ival; }; } |