diff options
Diffstat (limited to 'src/gui/editors/guitar/FingeringBox.cpp')
-rw-r--r-- | src/gui/editors/guitar/FingeringBox.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/editors/guitar/FingeringBox.cpp b/src/gui/editors/guitar/FingeringBox.cpp index 6695a66..7677b85 100644 --- a/src/gui/editors/guitar/FingeringBox.cpp +++ b/src/gui/editors/guitar/FingeringBox.cpp @@ -31,8 +31,8 @@ namespace Rosegarden { -FingeringBox::FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool editable, TQWidget *parent, const char* name) - : TQFrame(parent, name), +FingeringBox::FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool editable, TQWidget *tqparent, const char* name) + : TQFrame(tqparent, name), m_nbFretsDisplayed(nbFrets), m_startFret(1), m_nbStrings(nbStrings), @@ -44,8 +44,8 @@ FingeringBox::FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool ed init(); } -FingeringBox::FingeringBox(bool editable, TQWidget *parent, const char* name) - : TQFrame(parent, name), +FingeringBox::FingeringBox(bool editable, TQWidget *tqparent, const char* name) + : TQFrame(tqparent, name), m_nbFretsDisplayed(DEFAULT_NB_DISPLAYED_FRETS), m_startFret(1), m_nbStrings(Guitar::Fingering::DEFAULT_NB_STRINGS), @@ -123,11 +123,11 @@ FingeringBox::drawContents(TQPainter* p) // DEBUG // p->save(); -// p->setPen(Qt::red); +// p->setPen(TQt::red); // unsigned int topBorderY = m_noteSymbols.getTopBorder(maximumHeight()); // p->drawLine(0, topBorderY, 20, topBorderY); // p->drawRect(m_r1); -// p->setPen(Qt::blue); +// p->setPen(TQt::blue); // p->drawRect(m_r2); // p->restore(); } @@ -183,7 +183,7 @@ FingeringBox::mousePressEvent(TQMouseEvent *event) if (!m_editable) return; - if((event->button() == LeftButton) && m_editable) { + if((event->button() == Qt::LeftButton) && m_editable) { // Find string position m_press_string_num = getStringNumber(event->pos()); @@ -219,16 +219,16 @@ FingeringBox::processMouseRelease(unsigned int release_string_num, if(m_press_fret_num == 0) { - int stringStatus = m_fingering.getStringStatus(m_press_string_num); + int stringtqStatus = m_fingering.getStringtqStatus(m_press_string_num); - if (stringStatus == Guitar::Fingering::OPEN) + if (stringtqStatus == Guitar::Fingering::OPEN) aVal = Guitar::Fingering::MUTED; - else if (stringStatus > Guitar::Fingering::OPEN) + else if (stringtqStatus > Guitar::Fingering::OPEN) aVal = Guitar::Fingering::OPEN; } - m_fingering.setStringStatus(m_press_string_num, aVal); + m_fingering.setStringtqStatus(m_press_string_num, aVal); update(); } |