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 /plugins/scheduler/bwswidget.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 'plugins/scheduler/bwswidget.h')
-rw-r--r-- | plugins/scheduler/bwswidget.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/plugins/scheduler/bwswidget.h b/plugins/scheduler/bwswidget.h index c035edb..bd0a94d 100644 --- a/plugins/scheduler/bwswidget.h +++ b/plugins/scheduler/bwswidget.h @@ -20,10 +20,10 @@ #ifndef KTBWSWIDGET_H #define KTBWSWIDGET_H -#include <qtable.h> -#include <qpixmap.h> -#include <qpoint.h> -#include <qcolor.h> +#include <tqtable.h> +#include <tqpixmap.h> +#include <tqpoint.h> +#include <tqcolor.h> #include "bwscheduler.h" @@ -39,17 +39,18 @@ namespace kt /** * @brief Bandwidth scheduler widget. * @author Ivan Vasić <[email protected]> - * This class is a QTable with customized cells. It's used for bandwidth scheduling by painting each cell with mouse moves or keyboard. + * This class is a TQTable with customized cells. It's used for bandwidth scheduling by painting each cell with mouse moves or keyboard. */ - class BWSWidget : public QTable + class BWSWidget : public TQTable { Q_OBJECT + TQ_OBJECT public: - BWSWidget(QWidget* parent = 0, const char* name = 0, bool useColors = true); + BWSWidget(TQWidget* tqparent = 0, const char* name = 0, bool useColors = true); ~BWSWidget(); ///Repaints the whole widget - void repaintWidget(); + void tqrepaintWidget(); ///Clears selection (removes focus) void clearSelect(); @@ -77,19 +78,19 @@ namespace kt private slots: void cellSelectionChanged(int row, int col); - void cellMouseDown(int row, int col, int button, const QPoint& mousePos); + void cellMouseDown(int row, int col, int button, const TQPoint& mousePos); private: - void paintFocus(QPainter* p, const QRect& cr); - void paintCell(QPainter* p, int row, int col, const QRect& cr, bool selected); - void drawCell(QPainter* p, int category, bool focus = false); - void focusOutEvent(QFocusEvent*); + void paintFocus(TQPainter* p, const TQRect& cr); + void paintCell(TQPainter* p, int row, int col, const TQRect& cr, bool selected); + void drawCell(TQPainter* p, int category, bool focus = false); + void focusOutEvent(TQFocusEvent*); - QPixmap* m_pix[5]; - QPixmap* m_pixf[5]; + TQPixmap* m_pix[5]; + TQPixmap* m_pixf[5]; - QColor* m_color[5]; - QColor* m_colorf[5]; + TQColor* m_color[5]; + TQColor* m_colorf[5]; int m_leftCategory; int m_rightCategory; |