summaryrefslogtreecommitdiffstats
path: root/src/systemtray.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 08:20:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-17 08:20:48 +0000
commitaa0726b20f398264f0a2abc60215be044b106f9c (patch)
tree070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/systemtray.h
parentd3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff)
downloadbasket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz
basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip
TQt4 port basket
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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