diff options
Diffstat (limited to 'knetload/statpopup.h')
-rw-r--r-- | knetload/statpopup.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/knetload/statpopup.h b/knetload/statpopup.h index f98d48b..7c5f358 100644 --- a/knetload/statpopup.h +++ b/knetload/statpopup.h @@ -14,7 +14,7 @@ #ifndef __STATPOPUP_H #define __STATPOPUP_H -#include <qwidget.h> +#include <tqwidget.h> class KAction; class KActionCollection; @@ -23,7 +23,7 @@ class KPopupMenu; class KRadioAction; class KSelectAction; class KToggleAction; -class QTimer; +class TQTimer; class StatDock; /** @@ -47,14 +47,15 @@ class StatDock; * require either subclass initialisation or an existing system tray * window. */ -class StatPopup : public QWidget { +class StatPopup : public TQWidget { Q_OBJECT + TQ_OBJECT public: /** * Colour constants. */ - static const QColor colorBorder; + static const TQColor colorBorder; public: /** @@ -64,7 +65,7 @@ public: * any configuration information. See the general class notes also * for a list of other routines this constructor will not call. */ - StatPopup(bool useSupportSplit, QWidget *parent = 0, const char *name = 0); + StatPopup(bool useSupportSplit, TQWidget *tqparent = 0, const char *name = 0); ~StatPopup(); /** @@ -141,8 +142,8 @@ protected: * The argument given will be either 0 or 1, referring to window * dock[0] or dock[1] respectively. */ - virtual QString dockName(int which) const = 0; - virtual QColor defaultDockColor(int which) const = 0; + virtual TQString dockName(int which) const = 0; + virtual TQColor defaultDockColor(int which) const = 0; /** * Take a fresh reading. Subclasses must override this routine. @@ -208,21 +209,21 @@ protected: /** * Custom painting routine. */ - void paintEvent(QPaintEvent *); + void paintEvent(TQPaintEvent *); /** * Overrides for dragging support. */ - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); + void mousePressEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); /** * Overrides for saving the popup state. */ - void closeEvent(QCloseEvent *); - void hideEvent(QHideEvent *); - void showEvent(QShowEvent *); + void closeEvent(TQCloseEvent *); + void hideEvent(TQHideEvent *); + void showEvent(TQShowEvent *); protected slots: /** @@ -251,7 +252,7 @@ protected: int lower[2]; /**< The lower readings taken during the last reading, one for each system tray window. */ - QString fullReading; + TQString fullReading; /**< A full string describing the last reading taken, to be displayed in this pop-up. */ @@ -267,7 +268,7 @@ private: /** * Update support. */ - QTimer* timer; + TQTimer* timer; /**< The timer handling periodic updates. */ int speed; /**< The frequency of updates in milliseconds. */ @@ -275,7 +276,7 @@ private: /** * Diagram support. */ - QColor color[2]; + TQColor color[2]; /**< The colours used in the two system tray diagrams. */ int fillStyle; /**< The fill style used in the system tray diagrams. */ |