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/kbfxspinxscrollbar.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/kbfxspinxscrollbar.h')
-rw-r--r-- | src/kbfxspinxscrollbar.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/kbfxspinxscrollbar.h b/src/kbfxspinxscrollbar.h index c159bc3..8ed7b73 100644 --- a/src/kbfxspinxscrollbar.h +++ b/src/kbfxspinxscrollbar.h @@ -22,31 +22,32 @@ #ifndef KBFX_SPINX_SCROLL_BAR_H #define KBFX_SPINX_SCROLL_BAR_H -#include <qimage.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qpointarray.h> -#include <qtimer.h> -#include <qwidget.h> +#include <tqimage.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqpointarray.h> +#include <tqtimer.h> +#include <tqwidget.h> #include <kbfxplasmapixmapprovider.h> -class QWidget; +class TQWidget; -class KbfxSpinxScrollBar:public QWidget +class KbfxSpinxScrollBar:public TQWidget { Q_OBJECT + TQ_OBJECT public: typedef enum {UP,DOWN,LEFT,RIGHT} Direction; - KbfxSpinxScrollBar ( QWidget * parent = 0,const char * name = 0,int type = 0 ); + KbfxSpinxScrollBar ( TQWidget * tqparent = 0,const char * name = 0,int type = 0 ); ~KbfxSpinxScrollBar(); - virtual void paintEvent ( QPaintEvent * ev ); - virtual void mousePressEvent ( QMouseEvent * me ); - virtual void mouseReleaseEvent ( QMouseEvent * me ); - virtual void enterEvent ( QEvent * e ); - virtual void leaveEvent ( QEvent * e ); + virtual void paintEvent ( TQPaintEvent * ev ); + virtual void mousePressEvent ( TQMouseEvent * me ); + virtual void mouseReleaseEvent ( TQMouseEvent * me ); + virtual void enterEvent ( TQEvent * e ); + virtual void leaveEvent ( TQEvent * e ); void setType ( Direction dir ); public slots: void timeoutslot(); @@ -57,12 +58,12 @@ class KbfxSpinxScrollBar:public QWidget void scroll ( int , int ); private: - QPixmap m_normal; - QPixmap m_hover; - QPixmap m_presseod; - QPointArray m_triAngle; + TQPixmap m_normal; + TQPixmap m_hover; + TQPixmap m_presseod; + TQPointArray m_triAngle; Direction m_dir; - QTimer * m_timer; + TQTimer * m_timer; bool m_pressed; |