summaryrefslogtreecommitdiffstats
path: root/src/systemtray.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemtray.h')
-rw-r--r--src/systemtray.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/systemtray.h b/src/systemtray.h
index d36bd9b..4c97321 100644
--- a/src/systemtray.h
+++ b/src/systemtray.h
@@ -32,8 +32,9 @@ class MainWindow;
class KSystemTray2 : public KSystemTray
{
Q_OBJECT
+ TQ_OBJECT
public:
- KSystemTray2(QWidget *parent = 0, const char *name = 0);
+ KSystemTray2(TQWidget *tqparent = 0, const char *name = 0);
~KSystemTray2();
/**
* Call this method when the user clicked the close button of the window
@@ -44,7 +45,7 @@ class KSystemTray2 : public KSystemTray
*
* @since 3.4
*/
- void displayCloseMessage(QString fileMenu = "");
+ void displayCloseMessage(TQString fileMenu = "");
};
/** This class provide a personalized system tray icon.
@@ -53,20 +54,21 @@ class KSystemTray2 : public KSystemTray
class SystemTray : public KSystemTray2
{
Q_OBJECT
+ TQ_OBJECT
public:
- SystemTray(QWidget *parent = 0, const char *name = 0);
+ SystemTray(TQWidget *tqparent = 0, const char *name = 0);
~SystemTray();
protected:
- void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- void mouseReleaseEvent(QMouseEvent *event);
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dragMoveEvent(QDragMoveEvent* event);
- virtual void dragLeaveEvent(QDragLeaveEvent*);
- virtual void dropEvent(QDropEvent *event);
- void wheelEvent(QWheelEvent *event);
- void enterEvent(QEvent*);
- void leaveEvent(QEvent*);
+ void mousePressEvent(TQMouseEvent *event);
+ void mouseMoveEvent(TQMouseEvent *event);
+ void mouseReleaseEvent(TQMouseEvent *event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dragMoveEvent(TQDragMoveEvent* event);
+ virtual void dragLeaveEvent(TQDragLeaveEvent*);
+ virtual void dropEvent(TQDropEvent *event);
+ void wheelEvent(TQWheelEvent *event);
+ void enterEvent(TQEvent*);
+ void leaveEvent(TQEvent*);
public slots:
void updateToolTip();
protected slots:
@@ -74,12 +76,12 @@ class SystemTray : public KSystemTray2
signals:
void showPart();
private:
- QTimer *m_showTimer;
- QTimer *m_autoShowTimer;
+ TQTimer *m_showTimer;
+ TQTimer *m_autoShowTimer;
bool m_canDrag;
- QPoint m_pressPos;
- QPixmap m_iconPixmap;
- QPixmap m_lockedIconPixmap;
+ TQPoint m_pressPos;
+ TQPixmap m_iconPixmap;
+ TQPixmap m_lockedIconPixmap;
};
#endif // SYSTEMTRAY_H