summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/PitchDragLabel.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/PitchDragLabel.h
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/PitchDragLabel.h')
-rw-r--r--src/gui/widgets/PitchDragLabel.h28
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;