From a49b0e2c531c81e420dc103b5130e2fa8643f46d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 13 Nov 2023 21:03:36 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro (cherry picked from commit b965cbac5b21345e9dfc768a7e4f660ffa4aa72f) --- kcontrol/tdefontinst/lib/FcEngine.cpp | 4 ++-- kcontrol/tdefontinst/viewpart/FontPreview.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kcontrol/tdefontinst') diff --git a/kcontrol/tdefontinst/lib/FcEngine.cpp b/kcontrol/tdefontinst/lib/FcEngine.cpp index 1956a34a6..987a44174 100644 --- a/kcontrol/tdefontinst/lib/FcEngine.cpp +++ b/kcontrol/tdefontinst/lib/FcEngine.cpp @@ -491,7 +491,7 @@ bool CFcEngine::draw(const KURL &url, int w, int h, TQPixmap &pix, int faceNo, b x=offset, y=offset; pix.resize(w, h); - pix.fill(Qt::white); + pix.fill(TQt::white); TQPainter painter(&pix); @@ -580,7 +580,7 @@ bool CFcEngine::draw(const KURL &url, int w, int h, TQPixmap &pix, int faceNo, b title=i18n("%1 [1 pixel]", "%1 [%n pixels]", itsSizes[0]).arg(title); painter.setFont(TDEGlobalSettings::generalFont()); - painter.setPen(Qt::black); + painter.setPen(TQt::black); y=painter.fontMetrics().height(); drawText(painter, x, y, w-offset, title); y+=4; diff --git a/kcontrol/tdefontinst/viewpart/FontPreview.cpp b/kcontrol/tdefontinst/viewpart/FontPreview.cpp index 41367d586..ff2eaae77 100644 --- a/kcontrol/tdefontinst/viewpart/FontPreview.cpp +++ b/kcontrol/tdefontinst/viewpart/FontPreview.cpp @@ -65,7 +65,7 @@ void CFontPreview::showFont() if(!itsCurrentUrl.isEmpty() && itsEngine.draw(itsCurrentUrl, itsLastWidth, itsLastHeight, itsPixmap, itsCurrentFace-1, false)) { - setEraseColor(Qt::white); + setEraseColor(TQt::white); update(); emit status(true); } -- cgit v1.2.1