summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/SystemFontQt.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/notation/SystemFontQt.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/notation/SystemFontQt.cpp')
-rw-r--r--src/gui/editors/notation/SystemFontQt.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/editors/notation/SystemFontQt.cpp b/src/gui/editors/notation/SystemFontQt.cpp
index f9c99b1..ad969e8 100644
--- a/src/gui/editors/notation/SystemFontQt.cpp
+++ b/src/gui/editors/notation/SystemFontQt.cpp
@@ -27,10 +27,10 @@
#include "misc/Debug.h"
#include "gui/general/PixmapFunctions.h"
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
namespace Rosegarden {
@@ -42,29 +42,29 @@ SystemFontQt::renderChar(CharName charName, int glyph, int code,
if (strategy == OnlyGlyphs) {
NOTATION_DEBUG << "SystemFontQt::renderChar: OnlyGlyphs strategy not supported by Qt renderer, can't render character " << charName.getName() << " (glyph " << glyph << ")" << endl;
- return QPixmap();
+ return TQPixmap();
}
if (code < 0) {
NOTATION_DEBUG << "SystemFontQt::renderChar: Can't render using Qt with only glyph value (" << glyph << ") for character " << charName.getName() << ", need a code point" << endl;
- return QPixmap();
+ return TQPixmap();
}
- QFontMetrics metrics(m_font);
- QChar qc(code);
+ TQFontMetrics metrics(m_font);
+ TQChar qc(code);
- QPixmap map;
- map = QPixmap(metrics.width(qc), metrics.height());
+ TQPixmap map;
+ map = TQPixmap(metrics.width(qc), metrics.height());
map.fill();
- QPainter painter;
+ TQPainter painter;
painter.begin(&map);
painter.setFont(m_font);
painter.setPen(Qt::black);
NOTATION_DEBUG << "NoteFont: Drawing character code "
<< code << " for " << charName.getName()
- << " using QFont" << endl;
+ << " using TQFont" << endl;
painter.drawText(0, metrics.ascent(), qc);