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/NoteSymbols.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/NoteSymbols.h')
-rw-r--r-- | src/gui/editors/guitar/NoteSymbols.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/editors/guitar/NoteSymbols.h b/src/gui/editors/guitar/NoteSymbols.h index f90fefb..9222a9a 100644 --- a/src/gui/editors/guitar/NoteSymbols.h +++ b/src/gui/editors/guitar/NoteSymbols.h @@ -27,8 +27,8 @@ #ifndef _RG_SYMBOLS_H_ #define _RG_SYMBOLS_H_ -#include <qbrush.h> -#include <qpainter.h> +#include <tqbrush.h> +#include <tqpainter.h> namespace Rosegarden { @@ -105,40 +105,40 @@ public: m_nbOfStrings(nbOfStrings), m_nbOfFrets(nbOfFrets) {}; - //! Display a mute symbol in the QPainter object + //! Display a mute symbol in the TQPainter object void - drawMuteSymbol ( QPainter* p, + drawMuteSymbol ( TQPainter* p, unsigned int position ) const; /* This code borrowed from KGuitar 0.5 */ - //! Display a open symbol in the QPainter object (KGuitar) - void drawOpenSymbol ( QPainter* p, + //! Display a open symbol in the TQPainter object (KGuitar) + void drawOpenSymbol ( TQPainter* p, unsigned int position ) const; /* This code borrowed from KGuitar 0.5 */ - //! Display a note symbol in the QPainter object (KGuitar) - void drawNoteSymbol ( QPainter* p, + //! Display a note symbol in the TQPainter object (KGuitar) + void drawNoteSymbol ( TQPainter* p, unsigned int stringNb, int fretNb, bool transient = false ) const; /* This code borrowed from KGuitar 0.5 */ /** - * Display a bar symbol in the QPainter object (KGuitar) + * Display a bar symbol in the TQPainter object (KGuitar) * The code from the KGuitar project was modified to display a bar. This feature was not * available in that project */ - void drawBarreSymbol ( QPainter* p, + void drawBarreSymbol ( TQPainter* p, int fretNb, unsigned int start, unsigned int end ) const; - void drawFretNumber ( QPainter* p, + void drawFretNumber ( TQPainter* p, unsigned int fret_num ) const; - void drawFrets ( QPainter* p ) const; + void drawFrets ( TQPainter* p ) const; - void drawStrings ( QPainter* p ) const; + void drawStrings ( TQPainter* p ) const; unsigned int getTopBorder ( unsigned int imgHeight ) const; @@ -164,11 +164,11 @@ public: unsigned int y_pos, unsigned int maxFretNum ) const; - QRect getTransientNoteSymbolRect(QSize guitarChordSize, + TQRect getTransientNoteSymbolRect(TQSize guitarChordSize, unsigned int stringNb, int fretNb) const; - static void drawFingeringPixmap(const Fingering& fingering, const NoteSymbols& noteSymbols, QPainter *p); + static void drawFingeringPixmap(const Fingering& fingering, const NoteSymbols& noteSymbols, TQPainter *p); private: |