summaryrefslogtreecommitdiffstats
path: root/plugins/infowidget/chunkbar.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 /plugins/infowidget/chunkbar.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 'plugins/infowidget/chunkbar.h')
-rw-r--r--plugins/infowidget/chunkbar.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/plugins/infowidget/chunkbar.h b/plugins/infowidget/chunkbar.h
index 6cf0d6a..32366c3 100644
--- a/plugins/infowidget/chunkbar.h
+++ b/plugins/infowidget/chunkbar.h
@@ -21,11 +21,11 @@
#ifndef CHUNKBAR_H
#define CHUNKBAR_H
-#include <qlabel.h>
+#include <tqlabel.h>
#include <util/bitset.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
-class QPainter;
+class TQPainter;
namespace kt
{
@@ -47,30 +47,31 @@ namespace kt
* BitSets can represent which chunks are downloaded, which chunks are available
* and which chunks are excluded.
*/
- class ChunkBar : public QFrame
+ class ChunkBar : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- ChunkBar(QWidget *parent = 0, const char *name = 0);
+ ChunkBar(TQWidget *tqparent = 0, const char *name = 0);
virtual ~ChunkBar();
void setTC(kt::TorrentInterface* tc);
virtual const bt::BitSet & getBitSet() const = 0;
- virtual void drawContents(QPainter *p);
+ virtual void drawContents(TQPainter *p);
virtual void updateBar();
private:
- void drawEqual(QPainter *p,const bt::BitSet & bs,const QColor & color);
- void drawMoreChunksThenPixels(QPainter *p,const bt::BitSet & bs,const QColor & color);
- void drawAllOn(QPainter *p,const QColor & color);
- void drawBarContents(QPainter *p);
+ void drawEqual(TQPainter *p,const bt::BitSet & bs,const TQColor & color);
+ void drawMoreChunksThenPixels(TQPainter *p,const bt::BitSet & bs,const TQColor & color);
+ void drawAllOn(TQPainter *p,const TQColor & color);
+ void drawBarContents(TQPainter *p);
protected:
kt::TorrentInterface* curr_tc;
bool show_excluded;
bt::BitSet curr,curr_ebs;
- QPixmap pixmap;
+ TQPixmap pixmap;
};
}