summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/guitar/FingeringBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/guitar/FingeringBox.cpp')
-rw-r--r--src/gui/editors/guitar/FingeringBox.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/editors/guitar/FingeringBox.cpp b/src/gui/editors/guitar/FingeringBox.cpp
index 885ba83..6695a66 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, QWidget *parent, const char* name)
- : QFrame(parent, name),
+FingeringBox::FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool editable, TQWidget *parent, const char* name)
+ : TQFrame(parent, 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, QWidget *parent, const char* name)
- : QFrame(parent, name),
+FingeringBox::FingeringBox(bool editable, TQWidget *parent, const char* name)
+ : TQFrame(parent, name),
m_nbFretsDisplayed(DEFAULT_NB_DISPLAYED_FRETS),
m_startFret(1),
m_nbStrings(Guitar::Fingering::DEFAULT_NB_STRINGS),
@@ -58,7 +58,7 @@ FingeringBox::FingeringBox(bool editable, QWidget *parent, const char* name)
void
FingeringBox::init()
{
- setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
+ setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
setFixedSize(IMG_WIDTH, IMG_HEIGHT);
setBackgroundMode(PaletteBase);
if (m_editable)
@@ -67,7 +67,7 @@ FingeringBox::init()
}
void
-FingeringBox::drawContents(QPainter* p)
+FingeringBox::drawContents(TQPainter* p)
{
// NOTATION_DEBUG << "FingeringBox::drawContents()" << endl;
@@ -140,7 +140,7 @@ FingeringBox::setFingering(const Guitar::Fingering& f) {
}
unsigned int
-FingeringBox::getStringNumber(const QPoint& pos)
+FingeringBox::getStringNumber(const TQPoint& pos)
{
PositionPair result = m_noteSymbols.getStringNumber(maximumHeight(),
pos.x(),
@@ -156,7 +156,7 @@ FingeringBox::getStringNumber(const QPoint& pos)
}
unsigned int
-FingeringBox::getFretNumber(const QPoint& pos)
+FingeringBox::getFretNumber(const TQPoint& pos)
{
unsigned int fretNum = 0;
@@ -178,7 +178,7 @@ FingeringBox::getFretNumber(const QPoint& pos)
}
void
-FingeringBox::mousePressEvent(QMouseEvent *event)
+FingeringBox::mousePressEvent(TQMouseEvent *event)
{
if (!m_editable)
return;
@@ -194,7 +194,7 @@ FingeringBox::mousePressEvent(QMouseEvent *event)
}
void
-FingeringBox::mouseReleaseEvent(QMouseEvent *event)
+FingeringBox::mouseReleaseEvent(TQMouseEvent *event)
{
if(!m_editable)
return ;
@@ -250,7 +250,7 @@ FingeringBox::processMouseRelease(unsigned int release_string_num,
void
-FingeringBox::mouseMoveEvent( QMouseEvent *event )
+FingeringBox::mouseMoveEvent( TQMouseEvent *event )
{
if (!m_editable)
return;
@@ -261,12 +261,12 @@ FingeringBox::mouseMoveEvent( QMouseEvent *event )
if (transientStringNb != m_transientStringNb ||
transientFretNb != m_transientFretNb) {
- QRect r1 = m_noteSymbols.getTransientNoteSymbolRect(size(),
+ TQRect r1 = m_noteSymbols.getTransientNoteSymbolRect(size(),
m_transientStringNb,
m_transientFretNb - (m_startFret - 1));
m_transientStringNb = transientStringNb;
m_transientFretNb = transientFretNb;
- QRect r2 = m_noteSymbols.getTransientNoteSymbolRect(size(),
+ TQRect r2 = m_noteSymbols.getTransientNoteSymbolRect(size(),
m_transientStringNb,
m_transientFretNb - (m_startFret - 1));
@@ -275,7 +275,7 @@ FingeringBox::mouseMoveEvent( QMouseEvent *event )
// RG_DEBUG << "Fingering::updateTransientPos r1 = " << r1 << " - r2 = " << r2 << endl;
-// QRect updateRect = r1 | r2;
+// TQRect updateRect = r1 | r2;
// update(updateRect);
update();
@@ -285,7 +285,7 @@ FingeringBox::mouseMoveEvent( QMouseEvent *event )
}
void
-FingeringBox::leaveEvent(QEvent*)
+FingeringBox::leaveEvent(TQEvent*)
{
update();
}