diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 22:07:15 +0000 |
commit | 421b60af92c83b889f8903c2898f2bd07186fcd8 (patch) | |
tree | ad873a24c9438baed4942fda795430a4c3dc9a9a /src/kbfxbutton.h | |
parent | 39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff) | |
download | kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip |
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kbfxbutton.h')
-rw-r--r-- | src/kbfxbutton.h | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/src/kbfxbutton.h b/src/kbfxbutton.h index d4ece12..a333b2d 100644 --- a/src/kbfxbutton.h +++ b/src/kbfxbutton.h @@ -22,12 +22,12 @@ #ifndef KBFX_BUTTON_H #define KBFX_BUTTON_H -#include <qdragobject.h> -#include <qimage.h> -#include <qlabel.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qtimer.h> +#include <tqdragobject.h> +#include <tqimage.h> +#include <tqlabel.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqtimer.h> #include <dcopclient.h> #include <dcopref.h> @@ -42,26 +42,27 @@ #include <kbfxplasmapixmapprovider.h> -class QPixmap; -class QLabel; +class TQPixmap; +class TQLabel; -class KbfxButton:public QLabel +class KbfxButton:public TQLabel { Q_OBJECT + TQ_OBJECT public: - KbfxButton ( QWidget * parent, const char * name = 0 ); + KbfxButton ( TQWidget * tqparent, const char * name = 0 ); ~KbfxButton(); void kbfx_vista_button_setFx ( bool choice ); - virtual void paintEvent ( QPaintEvent *pe ); - virtual void enterEvent ( QEvent * e ) ; - virtual void leaveEvent ( QEvent * e ); - virtual void mousePressEvent ( QMouseEvent * e ); - virtual void dropEvent ( QDropEvent *e ); - virtual void dragEnterEvent ( QDragEnterEvent *e ); + virtual void paintEvent ( TQPaintEvent *pe ); + virtual void enterEvent ( TQEvent * e ) ; + virtual void leaveEvent ( TQEvent * e ); + virtual void mousePressEvent ( TQMouseEvent * e ); + virtual void dropEvent ( TQDropEvent *e ); + virtual void dragEnterEvent ( TQDragEnterEvent *e ); static bool m_sizeHeight; static int m_size; - QCString findPanel(); + TQCString findPanel(); void readjust( bool ); public slots: @@ -82,31 +83,31 @@ class KbfxButton:public QLabel void showToolTip (); protected: - QPixmap m_over_skin; - QPixmap m_pressed_skin; - QPixmap m_release_skin; - QPixmap m_normal_skin; - QPixmap m_current_skin; + TQPixmap m_over_skin; + TQPixmap m_pressed_skin; + TQPixmap m_release_skin; + TQPixmap m_normal_skin; + TQPixmap m_current_skin; // mng support ??? - QPixmap * m_buffer; - QTimer * m_anime_timer; - QMovie * m_normal_anime; - QMovie * m_pressed_anime; - QMovie * m_hover_anime; - QMovie * m_current_anime; - QString m_normal_path; - QString m_over_path; - QString m_pressed_path; + TQPixmap * m_buffer; + TQTimer * m_anime_timer; + TQMovie * m_normal_anime; + TQMovie * m_pressed_anime; + TQMovie * m_hover_anime; + TQMovie * m_current_anime; + TQString m_normal_path; + TQString m_over_path; + TQString m_pressed_path; bool m_anime_on; bool m_kicker_auto_adjust; DCOPClient * m_dcopClient; /* state of the button */ bool m_toggle; - QTimer * fade_timer; + TQTimer * fade_timer; float m_opacity; - QPixmap m_fadePix; + TQPixmap m_fadePix; int m_fadeTime; }; |