Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/17/head
Michele Calgaro 5 months ago
parent 0fc192d282
commit 217eb15dfe
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);
}
}

@ -1255,7 +1255,7 @@ NotePixmapFactory::drawFlags(int flagCount,
y,
*flagChar.getPixmap());
m_p->begin(TQT_TQPAINTDEVICE(m_generatedPixmap), TQT_TQPAINTDEVICE(m_generatedMask));
m_p->begin(m_generatedPixmap, m_generatedMask);
} else {
@ -3446,7 +3446,7 @@ NotePixmapFactory::createPixmapAndMask(int width, int height,
m_generatedMask->fill(TQt::color0);
// initiate painting
m_p->begin(TQT_TQPAINTDEVICE(m_generatedPixmap), TQT_TQPAINTDEVICE(m_generatedMask));
m_p->begin(m_generatedPixmap, m_generatedMask);
m_p->painter().setPen(TQt::black);
m_p->painter().setBrush(TQt::black);

Loading…
Cancel
Save