diff options
Diffstat (limited to 'src/gui/editors/matrix/PianoKeyboard.cpp')
-rw-r--r-- | src/gui/editors/matrix/PianoKeyboard.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/editors/matrix/PianoKeyboard.cpp b/src/gui/editors/matrix/PianoKeyboard.cpp index 47f8413..e61cdc6 100644 --- a/src/gui/editors/matrix/PianoKeyboard.cpp +++ b/src/gui/editors/matrix/PianoKeyboard.cpp @@ -46,8 +46,8 @@ namespace Rosegarden const unsigned int _smallWhiteKeyHeight = 14; const unsigned int _whiteKeyHeight = 18; -PianoKeyboard::PianoKeyboard(TQWidget *parent, int keys) - : PitchRuler(parent), +PianoKeyboard::PianoKeyboard(TQWidget *tqparent, int keys) + : PitchRuler(tqparent), m_keySize(48, 18), m_blackKeySize(24, 8), m_nbKeys(keys), @@ -65,13 +65,13 @@ PianoKeyboard::PianoKeyboard(TQWidget *parent, int keys) setMouseTracking(true); } -TQSize PianoKeyboard::sizeHint() const +TQSize PianoKeyboard::tqsizeHint() const { return TQSize(m_keySize.width(), m_keySize.height() * m_nbKeys); } -TQSize PianoKeyboard::minimumSizeHint() const +TQSize PianoKeyboard::tqminimumSizeHint() const { return m_keySize; } @@ -151,10 +151,10 @@ void PianoKeyboard::paintEvent(TQPaintEvent*) MidiPitchLabel label(pitch); paint.drawText(m_blackKeySize.width(), m_labelKeyPos[i], - label.getQString()); + label.getTQString()); } - paint.setBrush(colorGroup().foreground()); + paint.setBrush(tqcolorGroup().foreground()); for (unsigned int i = 0; i < m_blackKeyPos.size(); ++i) paint.drawRect(0, m_blackKeyPos[i], @@ -249,7 +249,7 @@ void PianoKeyboard::mouseMoveEvent(TQMouseEvent* e) // // RWB (20040220) // - MatrixView *matrixView = dynamic_cast<MatrixView*>(topLevelWidget()); + MatrixView *matrixView = dynamic_cast<MatrixView*>(tqtopLevelWidget()); if (matrixView) { MatrixStaff *staff = matrixView->getStaff(0); @@ -272,11 +272,11 @@ void PianoKeyboard::mouseMoveEvent(TQMouseEvent* e) void PianoKeyboard::mousePressEvent(TQMouseEvent *e) { - Qt::ButtonState bs = e->state(); + TQt::ButtonState bs = e->state(); - if (e->button() == LeftButton) { + if (e->button() == Qt::LeftButton) { m_mouseDown = true; - m_selecting = (bs & Qt::ShiftButton); + m_selecting = (bs & TQt::ShiftButton); m_lastKeyPressed = e->y(); if (m_selecting) @@ -288,7 +288,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e) void PianoKeyboard::mouseReleaseEvent(TQMouseEvent *e) { - if (e->button() == LeftButton) { + if (e->button() == Qt::LeftButton) { m_mouseDown = false; m_selecting = false; emit keyReleased(e->y(), false); |