From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- libktorrent/torrent/value.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libktorrent/torrent/value.cpp') diff --git a/libktorrent/torrent/value.cpp b/libktorrent/torrent/value.cpp index df063ab..4d8641c 100644 --- a/libktorrent/torrent/value.cpp +++ b/libktorrent/torrent/value.cpp @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include "value.h" namespace bt @@ -32,7 +32,7 @@ namespace bt Value::Value(Int64 val) : type(INT64),big_ival(val) {} - Value::Value(const QByteArray & val) : type(STRING),ival(0),strval(val),big_ival(0) + Value::Value(const TQByteArray & val) : type(STRING),ival(0),strval(val),big_ival(0) {} Value::Value(const Value & val) @@ -43,12 +43,12 @@ namespace bt {} - QString Value::toString(const QString & encoding) const + TQString Value::toString(const TQString & encoding) const { if (encoding.isNull() || encoding.isEmpty()) return toString(); - QTextCodec* tc = QTextCodec::codecForName(encoding.ascii()); + TQTextCodec* tc = TQTextCodec::codecForName(encoding.ascii()); if (!tc) return toString(); @@ -80,7 +80,7 @@ namespace bt return *this; } - Value & Value::operator = (const QByteArray & val) + Value & Value::operator = (const TQByteArray & val) { type = STRING; strval = val; -- cgit v1.2.1