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/stats/ChartDrawer.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/stats/ChartDrawer.h')
-rw-r--r-- | plugins/stats/ChartDrawer.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/plugins/stats/ChartDrawer.h b/plugins/stats/ChartDrawer.h index 44b8d9f..2345f14 100644 --- a/plugins/stats/ChartDrawer.h +++ b/plugins/stats/ChartDrawer.h @@ -23,12 +23,12 @@ #include <stdint.h> -#include <qwidget.h> -#include <qpainter.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qmime.h> -#include <qimage.h> +#include <tqwidget.h> +#include <tqpainter.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqmime.h> +#include <tqimage.h> #include <klocale.h> @@ -44,9 +44,10 @@ namespace kt { \brief Widget for drawing line charts \author Krzysztof Kundzicz <athantor@gmail.com> */ -class ChartDrawer : public QWidget +class ChartDrawer : public TQWidget { Q_OBJECT + TQ_OBJECT public: ///Type used as widget size unit @@ -71,29 +72,29 @@ class ChartDrawer : public QWidget ///Chart data val_t mEls; ///Name of the chart unit - QString mUnitName; + TQString mUnitName; ///Mark max std::vector<bool> mMarkMax; ///Max mode MaxMode mMMode; ///Paint event handler - void paintEvent ( QPaintEvent * ); + void paintEvent ( TQPaintEvent * ); /** \brief Draws chart's frame \param rPnt Painter on which things will be drawn */ - void DrawFrame(QPainter &rPnt); + void DrawFrame(TQPainter &rPnt); /** \brief Draws chart's scale \param rPnt Painter on which things will be drawn */ - void DrawScale(QPainter &rPnt); + void DrawScale(TQPainter &rPnt); /** \brief Draws chart \param rPnt Painter on which things will be drawn */ - void DrawChart(QPainter &rPnt); + void DrawChart(TQPainter &rPnt); /** \brief Gets distance between two values on OY @@ -149,7 +150,7 @@ class ChartDrawer : public QWidget \param autom Whether athomagically set the maximum Y size \param uname Unit name */ - ChartDrawer(QWidget *p = 0, wgtsize_t x_max = 2, wgtsize_t y_max = 1, bool autom = true, const QString & uname = "KB/s"); + ChartDrawer(TQWidget *p = 0, wgtsize_t x_max = 2, wgtsize_t y_max = 1, bool autom = true, const TQString & uname = "KB/s"); ~ChartDrawer(); /** @@ -169,18 +170,18 @@ class ChartDrawer : public QWidget \note It'l be drawn on the chart */ - void SetUnitName(const QString & rN); + void SetUnitName(const TQString & rN); /** \brief Gets unit name \return name */ - QString GetUnitName() const; + TQString GetUnitName() const; /** \brief Doubleclick handler \param evt Mouse event */ - void mouseDoubleClickEvent ( QMouseEvent * evt ); + void mouseDoubleClickEvent ( TQMouseEvent * evt ); /** \brief Gets mode of OY axis maximum drawing @@ -215,14 +216,14 @@ class ChartDrawer : public QWidget \param rN Set's data name \param max Whether mark maximum of this dataset */ - void AddValuesCnt(const QString & rN, const bool max = true); + void AddValuesCnt(const TQString & rN, const bool max = true); /** \brief Adds empty dataset \param rP Pen that will be used to drawing \param rN Dataset name \param max Whether mark maximum of this dataset */ - void AddValuesCnt(const QPen & rP, const QString & rN, const bool max = true ); + void AddValuesCnt(const TQPen & rP, const TQString & rN, const bool max = true ); /** \brief Removes dataset @@ -273,7 +274,7 @@ class ChartDrawer : public QWidget \brief Emited when widget is doubleclicked \param evt Mouse event */ - void DoubleClicked(QMouseEvent * evt); + void DoubleClicked(TQMouseEvent * evt); }; |