summaryrefslogtreecommitdiffstats
path: root/libktorrent/interfaces/torrentfileinterface.h
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/interfaces/torrentfileinterface.h
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/interfaces/torrentfileinterface.h')
-rw-r--r--libktorrent/interfaces/torrentfileinterface.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/libktorrent/interfaces/torrentfileinterface.h b/libktorrent/interfaces/torrentfileinterface.h
index 430534c..bf30f1e 100644
--- a/libktorrent/interfaces/torrentfileinterface.h
+++ b/libktorrent/interfaces/torrentfileinterface.h
@@ -20,8 +20,8 @@
#ifndef KTTORRENTFILEINTERFACE_H
#define KTTORRENTFILEINTERFACE_H
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include <util/constants.h>
namespace kt
@@ -41,20 +41,21 @@ namespace kt
*
* This class is the interface for a file in a multifile torrent.
*/
- class TorrentFileInterface : public QObject
+ class TorrentFileInterface : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor, set the path and size.
* @param path The path
* @param size The size
*/
- TorrentFileInterface(const QString & path,Uint64 size);
+ TorrentFileInterface(const TQString & path,Uint64 size);
virtual ~TorrentFileInterface();
/// Get the path of the file
- QString getPath() const {return path;}
+ TQString getPath() const {return path;}
/// Get the size of the file
Uint64 getSize() const {return size;}
@@ -115,7 +116,7 @@ namespace kt
void previewAvailable(bool available);
protected:
- QString path;
+ TQString path;
Uint64 size;
Uint32 first_chunk;
Uint32 last_chunk;