diff options
Diffstat (limited to 'src/app/slider.h')
-rw-r--r-- | src/app/slider.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/app/slider.h b/src/app/slider.h index 7e06b6b..b7cbae0 100644 --- a/src/app/slider.h +++ b/src/app/slider.h @@ -4,11 +4,11 @@ #ifndef CODEINESLIDER_H #define CODEINESLIDER_H -#include <qslider.h> +#include <ntqslider.h> namespace Codeine { - class Slider : public QSlider + class Slider : public TQSlider { Q_OBJECT @@ -16,25 +16,25 @@ namespace Codeine static Slider *instance() { return s_instance; } public: - Slider( QWidget*, uint max = 0 ); + Slider( TQWidget*, uint max = 0 ); virtual void setValue( int ); signals: //we emit this when the user has specifically changed the slider //so connect to it if valueChanged() is too generic - //Qt also emits valueChanged( int ) + //TQt also emits valueChanged( int ) void sliderReleased( uint ); protected: - virtual void wheelEvent( QWheelEvent* ); - virtual void mouseMoveEvent( QMouseEvent* ); - virtual void mouseReleaseEvent( QMouseEvent* ); - virtual void mousePressEvent( QMouseEvent* ); - virtual void keyPressEvent( QKeyEvent *e ) { e->ignore(); } //so that MainWindow gets the keypress - - virtual QSize sizeHint() const { return QSlider::sizeHint() + QSize( 0, 6 ); } - virtual QSize minimumSizeHint() const { return sizeHint(); } + virtual void wheelEvent( TQWheelEvent* ); + virtual void mouseMoveEvent( TQMouseEvent* ); + virtual void mouseReleaseEvent( TQMouseEvent* ); + virtual void mousePressEvent( TQMouseEvent* ); + virtual void keyPressEvent( TQKeyEvent *e ) { e->ignore(); } //so that MainWindow gets the keypress + + virtual TQSize sizeHint() const { return TQSlider::sizeHint() + TQSize( 0, 6 ); } + virtual TQSize minimumSizeHint() const { return sizeHint(); } bool m_sliding; |