summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteCharacter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NoteCharacter.cpp')
-rw-r--r--src/gui/editors/notation/NoteCharacter.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/editors/notation/NoteCharacter.cpp b/src/gui/editors/notation/NoteCharacter.cpp
index fdcb578..2fcff18 100644
--- a/src/gui/editors/notation/NoteCharacter.cpp
+++ b/src/gui/editors/notation/NoteCharacter.cpp
@@ -25,11 +25,11 @@
#include "NoteCharacter.h"
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qcanvas.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqcanvas.h>
+#include <tqbitmap.h>
namespace Rosegarden
@@ -37,20 +37,20 @@ namespace Rosegarden
NoteCharacter::NoteCharacter() :
m_hotspot(0, 0),
- m_pixmap(new QPixmap()),
+ m_pixmap(new TQPixmap()),
m_rep(0)
{}
-NoteCharacter::NoteCharacter(QPixmap pixmap,
- QPoint hotspot, NoteCharacterDrawRep *rep) :
+NoteCharacter::NoteCharacter(TQPixmap pixmap,
+ TQPoint hotspot, NoteCharacterDrawRep *rep) :
m_hotspot(hotspot),
- m_pixmap(new QPixmap(pixmap)),
+ m_pixmap(new TQPixmap(pixmap)),
m_rep(rep)
{}
NoteCharacter::NoteCharacter(const NoteCharacter &c) :
m_hotspot(c.m_hotspot),
- m_pixmap(new QPixmap(*c.m_pixmap)),
+ m_pixmap(new TQPixmap(*c.m_pixmap)),
m_rep(c.m_rep)
{
// nothing else
@@ -62,7 +62,7 @@ NoteCharacter::operator=(const NoteCharacter &c)
if (&c == this)
return * this;
m_hotspot = c.m_hotspot;
- m_pixmap = new QPixmap(*c.m_pixmap);
+ m_pixmap = new TQPixmap(*c.m_pixmap);
m_rep = c.m_rep;
return *this;
}
@@ -90,20 +90,20 @@ NoteCharacter::getHotspot() const
return m_hotspot;
}
-QPixmap *
+TQPixmap *
NoteCharacter::getPixmap() const
{
return m_pixmap;
}
-QCanvasPixmap *
+TQCanvasPixmap *
NoteCharacter::getCanvasPixmap() const
{
- return new QCanvasPixmap(*m_pixmap, m_hotspot);
+ return new TQCanvasPixmap(*m_pixmap, m_hotspot);
}
void
-NoteCharacter::draw(QPainter *painter, int x, int y) const
+NoteCharacter::draw(TQPainter *painter, int x, int y) const
{
if (!m_rep) {
@@ -114,7 +114,7 @@ NoteCharacter::draw(QPainter *painter, int x, int y) const
NoteCharacterDrawRep a(m_rep->size());
for (unsigned int i = 0; i < m_rep->size(); ++i) {
- QPoint p(m_rep->point(i));
+ TQPoint p(m_rep->point(i));
a.setPoint(i, p.x() + x, p.y() + y);
}
@@ -123,10 +123,10 @@ NoteCharacter::draw(QPainter *painter, int x, int y) const
}
void
-NoteCharacter::drawMask(QPainter *painter, int x, int y) const
+NoteCharacter::drawMask(TQPainter *painter, int x, int y) const
{
- if (!m_rep && m_pixmap->mask()) {
- painter->drawPixmap(x, y, *(m_pixmap->mask()));
+ if (!m_rep && m_pixmap->tqmask()) {
+ painter->drawPixmap(x, y, *(m_pixmap->tqmask()));
}
}