diff options
Diffstat (limited to 'src/gui/widgets/Fader.h')
-rw-r--r-- | src/gui/widgets/Fader.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/gui/widgets/Fader.h b/src/gui/widgets/Fader.h index f4afb24..60aca20 100644 --- a/src/gui/widgets/Fader.h +++ b/src/gui/widgets/Fader.h @@ -28,16 +28,16 @@ #include "base/AudioLevel.h" #include <map> -#include <qcolor.h> -#include <qwidget.h> +#include <tqcolor.h> +#include <tqwidget.h> #include <utility> -class QWheelEvent; -class QTimer; -class QPixmap; -class QPaintEvent; -class QMouseEvent; +class TQWheelEvent; +class TQTimer; +class TQPixmap; +class TQPaintEvent; +class TQMouseEvent; namespace Rosegarden @@ -56,25 +56,25 @@ public: * based on the given dimensions. */ Fader(AudioLevel::FaderType, - int width, int height, QWidget *parent); + int width, int height, TQWidget *parent); /** * Construct a fader on an integral scale. The fader calculates * its orientation based on the given dimensions. */ Fader(int min, int max, int deflt, - int width, int height, QWidget *parent); + int width, int height, TQWidget *parent); /** * Construct a fader on an integral scale, with a 1:1 ratio of * pixel positions and values. */ Fader(int min, int max, int deflt, - bool vertical, QWidget *parent); + bool vertical, TQWidget *parent); virtual ~Fader(); - void setOutlineColour(QColor); + void setOutlineColour(TQColor); float getFaderLevel() const; @@ -86,11 +86,11 @@ signals: void faderChanged(float); protected: - virtual void paintEvent(QPaintEvent *); - virtual void mousePressEvent(QMouseEvent *); - virtual void mouseReleaseEvent(QMouseEvent *); - virtual void mouseMoveEvent(QMouseEvent *); - virtual void wheelEvent(QWheelEvent *); + virtual void paintEvent(TQPaintEvent *); + virtual void mousePressEvent(TQMouseEvent *); + virtual void mouseReleaseEvent(TQMouseEvent *); + virtual void mouseMoveEvent(TQMouseEvent *); + virtual void wheelEvent(TQWheelEvent *); float position_to_value(int); int value_to_position(float); @@ -114,16 +114,16 @@ protected: int m_clickButtonPos; TextFloat *m_float; - QTimer *m_floatTimer; + TQTimer *m_floatTimer; - QPixmap *groovePixmap(); - QPixmap *buttonPixmap(); + TQPixmap *groovePixmap(); + TQPixmap *buttonPixmap(); - QColor m_outlineColour; + TQColor m_outlineColour; typedef std::pair<int, int> SizeRec; - typedef std::map<unsigned int, QPixmap *> ColourPixmapRec; // key is QColor::pixel() - typedef std::pair<ColourPixmapRec, QPixmap *> PixmapRec; + typedef std::map<unsigned int, TQPixmap *> ColourPixmapRec; // key is TQColor::pixel() + typedef std::pair<ColourPixmapRec, TQPixmap *> PixmapRec; typedef std::map<SizeRec, PixmapRec> PixmapCache; static PixmapCache m_pixmapCache; }; |