diff options
Diffstat (limited to 'kcpuload/kcpuload/statdock.h')
-rw-r--r-- | kcpuload/kcpuload/statdock.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/kcpuload/kcpuload/statdock.h b/kcpuload/kcpuload/statdock.h index 35c402b..072c2c5 100644 --- a/kcpuload/kcpuload/statdock.h +++ b/kcpuload/kcpuload/statdock.h @@ -14,7 +14,7 @@ #ifndef __STATDOCK_H #define __STATDOCK_H -#include <qcolor.h> +#include <tqcolor.h> #include <ksystemtray.h> class StatPopup; @@ -29,11 +29,12 @@ class StatPopup; * with the upper readings shown above the lower readings. When diagram * splitting is switched off, only the upper readings will be displayed. * - * The parent window of a StatDock must be a StatPopup, which provides + * The tqparent window of a StatDock must be a StatPopup, which provides * all of the actions in this window's context menu. */ class StatDock : public KSystemTray { Q_OBJECT + TQ_OBJECT public: /** @@ -46,26 +47,26 @@ public: /** * Colour constants. */ - static const QColor colorGrid; - static const QColor colorGridInactive; - static const QColor colorLabel; - static const QColor colorLabelInactive; - static const QColor colorLower; - static const QColor colorLowerInactive; - static const QColor colorBlack; + static const TQColor colorGrid; + static const TQColor colorGridInactive; + static const TQColor colorLabel; + static const TQColor colorLabelInactive; + static const TQColor colorLower; + static const TQColor colorLowerInactive; + static const TQColor colorBlack; public: /** * Constructor and destructor. * - * Note that the constructor will call parent->initDock(). + * Note that the constructor will call tqparent->initDock(). * * Parameter whichDock must be 0 or 1 to specify whether this dock - * will become dock[0] or dock[1] in the given StatPopup parent. + * will become dock[0] or dock[1] in the given StatPopup tqparent. * Parameter useLabel should contain the label that will be drawn on * the diagram if labelling is enabled. */ - StatDock(int whichDock, const QString& useLabel, StatPopup *parent, + StatDock(int whichDock, const TQString& useLabel, StatPopup *tqparent, const char *name = 0); ~StatDock(); @@ -77,9 +78,9 @@ public: void setSoft(bool); void setSplit(bool); void setLabelled(bool); - void setLabel(const QString&); + void setLabel(const TQString&); void setFill(int); - void setColor(const QColor&); + void setColor(const TQColor&); public slots: /** @@ -108,7 +109,7 @@ private: /** * Repaint this system tray window with a fresh diagram. */ - void paintEvent(QPaintEvent*); + void paintEvent(TQPaintEvent*); private: /** @@ -125,13 +126,13 @@ private: /**< Are we displaying both upper and lower readings? */ bool labelled; /**< Should this diagram be labelled? */ - QString label; + TQString label; /**< The specific label to draw on this diagram. */ int fill; /**< Specifies which of the predefined fill styles to use. */ - QColor colorUpper; + TQColor colorUpper; /**< Colour for displaying the upper readings. */ - QColor colorUpperInactive; + TQColor colorUpperInactive; /**< Colour for displaying the upper readings whilst the diagram is inactive. */ @@ -157,7 +158,7 @@ private: /**< Temporary variables used during computations. */ protected: - void resizeEvent ( QResizeEvent * ); + void resizeEvent ( TQResizeEvent * ); }; #endif |