diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/guitar/FingeringBox.h | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/editors/guitar/FingeringBox.h')
-rw-r--r-- | src/gui/editors/guitar/FingeringBox.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/editors/guitar/FingeringBox.h b/src/gui/editors/guitar/FingeringBox.h index b54c0a8..aa76e52 100644 --- a/src/gui/editors/guitar/FingeringBox.h +++ b/src/gui/editors/guitar/FingeringBox.h @@ -27,7 +27,7 @@ #ifndef _RG_FINGERINGBOX_H_ #define _RG_FINGERINGBOX_H_ -#include <qframe.h> +#include <tqframe.h> #include "NoteSymbols.h" #include "Fingering.h" @@ -43,8 +43,8 @@ class FingeringBox : public QFrame static const unsigned int IMG_HEIGHT = 200; public: - FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool editable, QWidget *parent, const char* name = 0); - FingeringBox(bool editable, QWidget *parent, const char* name = 0); + FingeringBox(unsigned int nbFrets, unsigned int nbStrings, bool editable, TQWidget *parent, const char* name = 0); + FingeringBox(bool editable, TQWidget *parent, const char* name = 0); void setStartFret(unsigned int f) { m_startFret = f; update(); } unsigned int getStartFret() const { return m_startFret; } @@ -59,20 +59,20 @@ public: protected: void init(); - virtual void drawContents(QPainter*); + virtual void drawContents(TQPainter*); - virtual void mousePressEvent(QMouseEvent*); - virtual void mouseReleaseEvent(QMouseEvent*); - virtual void mouseMoveEvent(QMouseEvent*); - virtual void leaveEvent(QEvent*); + virtual void mousePressEvent(TQMouseEvent*); + virtual void mouseReleaseEvent(TQMouseEvent*); + virtual void mouseMoveEvent(TQMouseEvent*); + virtual void leaveEvent(TQEvent*); void processMouseRelease( unsigned int release_string_num, unsigned int release_fret_num); typedef std::pair<bool, unsigned int> PositionPair; - unsigned int getStringNumber(const QPoint&); + unsigned int getStringNumber(const TQPoint&); - unsigned int getFretNumber(const QPoint&); + unsigned int getFretNumber(const TQPoint&); //! Maximum number of frets displayed by FingeringBox unsigned int m_nbFretsDisplayed; @@ -98,7 +98,7 @@ protected: Guitar::NoteSymbols m_noteSymbols; - QRect m_r1, m_r2; + TQRect m_r1, m_r2; }; } |