diff options
Diffstat (limited to 'src/gui/widgets/PitchDragLabel.h')
-rw-r--r-- | src/gui/widgets/PitchDragLabel.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/widgets/PitchDragLabel.h b/src/gui/widgets/PitchDragLabel.h index 7114611..fa3ecfd 100644 --- a/src/gui/widgets/PitchDragLabel.h +++ b/src/gui/widgets/PitchDragLabel.h @@ -26,14 +26,14 @@ #ifndef _RG_ROSEGARDENPITCHDRAGLABEL_H_ #define _RG_ROSEGARDENPITCHDRAGLABEL_H_ -#include <qpixmap.h> -#include <qsize.h> -#include <qwidget.h> +#include <tqpixmap.h> +#include <tqsize.h> +#include <tqwidget.h> -class QWheelEvent; -class QPaintEvent; -class QMouseEvent; +class TQWheelEvent; +class TQPaintEvent; +class TQMouseEvent; namespace Rosegarden @@ -46,13 +46,13 @@ class PitchDragLabel : public QWidget { Q_OBJECT public: - PitchDragLabel(QWidget *parent, + PitchDragLabel(TQWidget *parent, int defaultPitch = 60, bool defaultSharps = true); ~PitchDragLabel(); int getPitch() const { return m_pitch; } - virtual QSize sizeHint() const; + virtual TQSize sizeHint() const; signals: void pitchDragged(int); @@ -68,11 +68,11 @@ public slots: void slotSetPitch(int,int,int); protected: - virtual void paintEvent(QPaintEvent *); - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseReleaseEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); - virtual void wheelEvent(QWheelEvent *e); + virtual void paintEvent(TQPaintEvent *); + virtual void mousePressEvent(TQMouseEvent *e); + virtual void mouseReleaseEvent(TQMouseEvent *e); + virtual void mouseMoveEvent(TQMouseEvent *e); + virtual void wheelEvent(TQWheelEvent *e); void calculatePixmap() const; void calculatePixmap(int pitch, int octave, int step) const; @@ -80,7 +80,7 @@ protected: /** emits 'pitchChanged' events, both diatonic and chromatic */ void emitPitchChange(); - mutable QPixmap m_pixmap; + mutable TQPixmap m_pixmap; int m_pitch; int m_clickedY; |