summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NotePixmapPainter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NotePixmapPainter.h')
-rw-r--r--src/gui/editors/notation/NotePixmapPainter.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/editors/notation/NotePixmapPainter.h b/src/gui/editors/notation/NotePixmapPainter.h
index ed9d541..ff8edae 100644
--- a/src/gui/editors/notation/NotePixmapPainter.h
+++ b/src/gui/editors/notation/NotePixmapPainter.h
@@ -26,7 +26,7 @@
#ifndef _RG_NOTEPIXMAPPAINTER_H_
#define _RG_NOTEPIXMAPPAINTER_H_
-#include <qpainter.h>
+#include <tqpainter.h>
namespace Rosegarden {
@@ -40,12 +40,12 @@ public:
NotePixmapPainter() :
m_painter(&m_myPainter) { }
- void beginExternal(QPainter *painter) {
+ void beginExternal(TQPainter *painter) {
m_externalPainter = painter;
m_useMask = false;
- painter->setPen(QPen(Qt::black, 1, Qt::SolidLine,
+ painter->setPen(TQPen(Qt::black, 1, Qt::SolidLine,
Qt::RoundCap, Qt::RoundJoin));
if (m_externalPainter) {
@@ -55,7 +55,7 @@ public:
}
}
- bool begin(QPaintDevice *device, QPaintDevice *mask = 0, bool unclipped = false) {
+ bool begin(TQPaintDevice *device, TQPaintDevice *mask = 0, bool unclipped = false) {
m_externalPainter = 0;
@@ -75,11 +75,11 @@ public:
return m_painter->end();
}
- QPainter &painter() {
+ TQPainter &painter() {
return *m_painter;
}
- QPainter &maskPainter() {
+ TQPainter &maskPainter() {
return m_maskPainter;
}
@@ -103,24 +103,24 @@ public:
if (m_useMask) m_maskPainter.drawArc(x, y, w, h, a, alen);
}
- void drawPolygon(const QPointArray &a, bool winding = false,
+ void drawPolygon(const TQPointArray &a, bool winding = false,
int index = 0, int n = -1) {
m_painter->drawPolygon(a, winding, index, n);
if (m_useMask) m_maskPainter.drawPolygon(a, winding, index, n);
}
- void drawPolyline(const QPointArray &a, int index = 0, int n = -1) {
+ void drawPolyline(const TQPointArray &a, int index = 0, int n = -1) {
m_painter->drawPolyline(a, index, n);
if (m_useMask) m_maskPainter.drawPolyline(a, index, n);
}
- void drawPixmap(int x, int y, const QPixmap &pm,
+ void drawPixmap(int x, int y, const TQPixmap &pm,
int sx = 0, int sy = 0, int sw = -1, int sh = -1) {
m_painter->drawPixmap(x, y, pm, sx, sy, sw, sh);
if (m_useMask) m_maskPainter.drawPixmap(x, y, *(pm.mask()), sx, sy, sw, sh);
}
- void drawText(int x, int y, const QString &string) {
+ void drawText(int x, int y, const TQString &string) {
m_painter->drawText(x, y, string);
if (m_useMask) m_maskPainter.drawText(x, y, string);
}
@@ -137,10 +137,10 @@ public:
private:
bool m_useMask;
- QPainter m_myPainter;
- QPainter m_maskPainter;
- QPainter *m_externalPainter;
- QPainter *m_painter;
+ TQPainter m_myPainter;
+ TQPainter m_maskPainter;
+ TQPainter *m_externalPainter;
+ TQPainter *m_painter;
};
}