summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/FontViewFrame.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-03 00:36:01 +0900
committerMichele Calgaro <[email protected]>2023-12-04 14:06:17 +0900
commitd226182192d460ae262962fe9d79604037bf9705 (patch)
tree6add2b6f3bde30b1d9a2822e4d52ae088f4ca5dd /src/gui/editors/notation/FontViewFrame.cpp
parentec073d6411b2ddf044ffafd07770affa052b7871 (diff)
downloadrosegarden-d226182192d460ae262962fe9d79604037bf9705.tar.gz
rosegarden-d226182192d460ae262962fe9d79604037bf9705.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 217eb15dfed1b38303754b8cab53d77d749f22b9)
Diffstat (limited to 'src/gui/editors/notation/FontViewFrame.cpp')
-rw-r--r--src/gui/editors/notation/FontViewFrame.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/editors/notation/FontViewFrame.cpp b/src/gui/editors/notation/FontViewFrame.cpp
index e78e44f..febb5ce 100644
--- a/src/gui/editors/notation/FontViewFrame.cpp
+++ b/src/gui/editors/notation/FontViewFrame.cpp
@@ -73,7 +73,7 @@ FontViewFrame::loadFont()
{
#ifdef HAVE_XFT
if (m_tableFont) {
- XftFontClose(TQT_TQPAINTDEVICE(this)->x11AppDisplay(), (XftFont *)m_tableFont);
+ XftFontClose(this->x11AppDisplay(), (XftFont *)m_tableFont);
}
m_tableFont = 0;
@@ -108,7 +108,7 @@ FontViewFrame::loadFont()
m_fontName = (const char *)matchFamily;
}
- m_tableFont = XftFontOpenPattern(TQT_TQPAINTDEVICE(this)->x11AppDisplay(), match);
+ m_tableFont = XftFontOpenPattern(this->x11AppDisplay(), match);
if (!m_tableFont) {
KMessageBox::error(this, i18n("Error: Unable to open best-match font %1").
@@ -159,8 +159,8 @@ void FontViewFrame::paintEvent( TQPaintEvent* e )
TQColor rpositive(128, 128, 255);
Drawable drawable = (Drawable)handle();
- XftDraw *draw = XftDrawCreate(TQT_TQPAINTDEVICE(this)->x11AppDisplay(), drawable,
- (Visual *)TQT_TQPAINTDEVICE(this)->x11Visual(), TQT_TQPAINTDEVICE(this)->x11Colormap());
+ XftDraw *draw = XftDrawCreate(this->x11AppDisplay(), drawable,
+ (Visual *)this->x11Visual(), this->x11Colormap());
TQColor pen(TQt::black);
XftColor col;
@@ -207,7 +207,7 @@ void FontViewFrame::paintEvent( TQPaintEvent* e )
XftDrawGlyphs(draw, &col, (XftFont *)m_tableFont, x, y, &ui, 1);
} else {
FcChar32 ch = m_row * 256 + (j - 1) * 16 + i - 1;
- if (XftCharExists(TQT_TQPAINTDEVICE(this)->x11AppDisplay(), (XftFont *)m_tableFont, ch)) {
+ if (XftCharExists(this->x11AppDisplay(), (XftFont *)m_tableFont, ch)) {
XftDrawString32(draw, &col, (XftFont *)m_tableFont, x, y, &ch, 1);
}
}