diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/Rotary.h | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/Rotary.h')
-rw-r--r-- | src/gui/widgets/Rotary.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/widgets/Rotary.h b/src/gui/widgets/Rotary.h index 2efacf9..cecff8c 100644 --- a/src/gui/widgets/Rotary.h +++ b/src/gui/widgets/Rotary.h @@ -27,14 +27,14 @@ #define _RG_ROSEGARDENROTARY_H_ #include <map> -#include <qcolor.h> -#include <qwidget.h> +#include <tqcolor.h> +#include <tqwidget.h> -class QWheelEvent; -class QPaintEvent; -class QPainter; -class QMouseEvent; +class TQWheelEvent; +class TQPaintEvent; +class TQPainter; +class TQMouseEvent; namespace Rosegarden @@ -55,7 +55,7 @@ public: StepTicks // end points plus every step interval }; - Rotary(QWidget *parent, + Rotary(TQWidget *parent, float minValue = 0.0, float maxValue = 100.0, float step = 1.0, @@ -89,8 +89,8 @@ public: // Set the colour of the knob // - void setKnobColour(const QColor &colour); - QColor getKnobColour() const { return m_knobColour; } + void setKnobColour(const TQColor &colour); + TQColor getKnobColour() const { return m_knobColour; } signals: void valueChanged(float); @@ -99,16 +99,16 @@ protected slots: void slotFloatTimeout(); protected: - virtual void paintEvent(QPaintEvent *e); - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseReleaseEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); - virtual void mouseDoubleClickEvent(QMouseEvent *e); - virtual void wheelEvent(QWheelEvent *e); + virtual void paintEvent(TQPaintEvent *e); + virtual void mousePressEvent(TQMouseEvent *e); + virtual void mouseReleaseEvent(TQMouseEvent *e); + virtual void mouseMoveEvent(TQMouseEvent *e); + virtual void mouseDoubleClickEvent(TQMouseEvent *e); + virtual void wheelEvent(TQWheelEvent *e); void snapPosition(); void drawPosition(); - void drawTick(QPainter &paint, double angle, int size, bool internal); + void drawTick(TQPainter &paint, double angle, int size, bool internal); float m_minValue; float m_maxValue; @@ -127,7 +127,7 @@ protected: int m_lastY; int m_lastX; - QColor m_knobColour; + TQColor m_knobColour; struct CacheIndex { @@ -156,7 +156,7 @@ protected: bool centred; }; - typedef std::map<CacheIndex, QPixmap> PixmapCache; + typedef std::map<CacheIndex, TQPixmap> PixmapCache; static PixmapCache m_pixmaps; }; |