summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/PitchDragLabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/PitchDragLabel.cpp')
-rw-r--r--src/gui/widgets/PitchDragLabel.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/widgets/PitchDragLabel.cpp b/src/gui/widgets/PitchDragLabel.cpp
index 1d22a77..9a174bb 100644
--- a/src/gui/widgets/PitchDragLabel.cpp
+++ b/src/gui/widgets/PitchDragLabel.cpp
@@ -28,20 +28,20 @@
#include "base/NotationRules.h"
#include "base/NotationTypes.h"
#include "gui/editors/notation/NotePixmapFactory.h"
-#include <qcanvas.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qsize.h>
-#include <qwidget.h>
+#include <tqcanvas.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqsize.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-PitchDragLabel::PitchDragLabel(QWidget *parent,
+PitchDragLabel::PitchDragLabel(TQWidget *parent,
int defaultPitch,
bool defaultSharps) :
- QWidget(parent),
+ TQWidget(parent),
m_pitch(defaultPitch),
m_usingSharps(defaultSharps),
m_clickedY(0),
@@ -82,7 +82,7 @@ PitchDragLabel::slotSetPitch(int pitch, int octave, int step)
}
void
-PitchDragLabel::mousePressEvent(QMouseEvent *e)
+PitchDragLabel::mousePressEvent(TQMouseEvent *e)
{
if (e->button() == LeftButton) {
m_clickedY = e->y();
@@ -93,7 +93,7 @@ PitchDragLabel::mousePressEvent(QMouseEvent *e)
}
void
-PitchDragLabel::mouseMoveEvent(QMouseEvent *e)
+PitchDragLabel::mouseMoveEvent(TQMouseEvent *e)
{
if (m_clicked) {
@@ -132,7 +132,7 @@ PitchDragLabel::mouseMoveEvent(QMouseEvent *e)
}
void
-PitchDragLabel::mouseReleaseEvent(QMouseEvent *e)
+PitchDragLabel::mouseReleaseEvent(TQMouseEvent *e)
{
mouseMoveEvent(e);
emitPitchChange();
@@ -159,7 +159,7 @@ PitchDragLabel::emitPitchChange()
}
void
-PitchDragLabel::wheelEvent(QWheelEvent *e)
+PitchDragLabel::wheelEvent(TQWheelEvent *e)
{
if (e->delta() > 0) {
if (m_pitch < 127) {
@@ -183,9 +183,9 @@ PitchDragLabel::wheelEvent(QWheelEvent *e)
}
void
-PitchDragLabel::paintEvent(QPaintEvent *)
+PitchDragLabel::paintEvent(TQPaintEvent *)
{
- QPainter paint(this);
+ TQPainter paint(this);
paint.fillRect(0, 0, width(), height(), paint.backgroundColor());
int x = width() / 2 - m_pixmap.width() / 2;
@@ -204,7 +204,7 @@ PitchDragLabel::paintEvent(QPaintEvent *)
QSize
PitchDragLabel::sizeHint() const
{
- return QSize(150, 135);
+ return TQSize(150, 135);
}
void
@@ -226,7 +226,7 @@ PitchDragLabel::calculatePixmap(int pitch, int octave, int step) const
}
}
- QCanvasPixmap *pmap = m_npf->makePitchDisplayPixmap
+ TQCanvasPixmap *pmap = m_npf->makePitchDisplayPixmap
(m_pitch,
Clef(clefType, octaveOffset),
octave, step);
@@ -255,7 +255,7 @@ PitchDragLabel::calculatePixmap() const
}
}
- QCanvasPixmap *pmap = m_npf->makePitchDisplayPixmap
+ TQCanvasPixmap *pmap = m_npf->makePitchDisplayPixmap
(m_pitch,
Clef(clefType, octaveOffset),
m_usingSharps);