summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/value.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/value.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-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.cpp')
-rw-r--r--libktorrent/torrent/value.cpp10
1 files changed, 5 insertions, 5 deletions
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 <qtextcodec.h>
+#include <tqtextcodec.h>
#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;