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/kbfxspinxtoolbutton.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/kbfxspinxtoolbutton.h')
-rw-r--r-- | src/kbfxspinxtoolbutton.h | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/src/kbfxspinxtoolbutton.h b/src/kbfxspinxtoolbutton.h index 2c3d9bf..a8a73dd 100644 --- a/src/kbfxspinxtoolbutton.h +++ b/src/kbfxspinxtoolbutton.h @@ -22,14 +22,14 @@ #ifndef KBFX_SPINX_TOOL_BUTTON_H #define KBFX_SPINX_TOOL_BUTTON_H -#include <qcursor.h> -#include <qimage.h> -#include <qlabel.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qtimer.h> -#include <qtoolbutton.h> -#include <qwidget.h> +#include <tqcursor.h> +#include <tqimage.h> +#include <tqlabel.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqtimer.h> +#include <tqtoolbutton.h> +#include <tqwidget.h> #include <kiconloader.h> #include <kimageeffect.h> @@ -40,30 +40,31 @@ #include <kbfxdatasource.h> #include <kbfxplasmapixmapprovider.h> -class KbfxSpinxToolButton:public QLabel +class KbfxSpinxToolButton:public TQLabel { Q_OBJECT + TQ_OBJECT public: typedef enum{SINGLE=0,EXPANDABLE} ButtonType; - KbfxSpinxToolButton ( QWidget * parent = 0, const char * name = 0 ); + KbfxSpinxToolButton ( TQWidget * tqparent = 0, const char * name = 0 ); virtual ~KbfxSpinxToolButton(); - virtual void paintEvent ( QPaintEvent * pe ); + virtual void paintEvent ( TQPaintEvent * pe ); - virtual void enterEvent ( QEvent * e ); - virtual void leaveEvent ( QEvent * l ); - virtual void mouseReleaseEvent ( QMouseEvent * me ); + virtual void enterEvent ( TQEvent * e ); + virtual void leaveEvent ( TQEvent * l ); + virtual void mouseReleaseEvent ( TQMouseEvent * me ); /* - virtual void mousePressEvent(QMouseEvent * me); + virtual void mousePressEvent(TQMouseEvent * me); */ void setDataSource ( KbfxDataSource * src ); // void setDataGroup(KbfxDataGroup * gsrc); - void setName ( QString name ) {m_name =name;} - void setExec ( QString cmd ) { m_exe = cmd;} + void setName ( TQString name ) {m_name =name;} + void setExec ( TQString cmd ) { m_exe = cmd;} void setType ( KbfxSpinxToolButton::ButtonType type ) { m_type = type;} - void setIcon ( QString path ); - void setPixmaps ( QPixmap , QPixmap ); + void setIcon ( TQString path ); + void setPixmaps ( TQPixmap , TQPixmap ); public slots: void fade(); @@ -71,23 +72,23 @@ class KbfxSpinxToolButton:public QLabel signals: void clicked(); private: - QString m_name; - QString m_exe; - QString m_icon; - QString m_tooltip; + TQString m_name; + TQString m_exe; + TQString m_icon; + TQString m_tooltip; - QPixmap m_normal; - QPixmap m_pressed; - QPixmap m_hover; - QPixmap m_current; - QPixmap m_iconPixmap; + TQPixmap m_normal; + TQPixmap m_pressed; + TQPixmap m_hover; + TQPixmap m_current; + TQPixmap m_iconPixmap; KbfxDataSource * m_dataSource; KbfxDataGroup * m_dataGroup; ButtonType m_type; bool m_statePressed; - QTimer * fade_timer; + TQTimer * fade_timer; float m_opacity; - QPixmap m_fadePix; + TQPixmap m_fadePix; int m_fadeTime; }; |