summaryrefslogtreecommitdiffstats
path: root/kcontrol/kfontinst/viewpart/FontPreview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/kfontinst/viewpart/FontPreview.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/kfontinst/viewpart/FontPreview.cpp')
-rw-r--r--kcontrol/kfontinst/viewpart/FontPreview.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kcontrol/kfontinst/viewpart/FontPreview.cpp b/kcontrol/kfontinst/viewpart/FontPreview.cpp
index ddd8171cb..3679be252 100644
--- a/kcontrol/kfontinst/viewpart/FontPreview.cpp
+++ b/kcontrol/kfontinst/viewpart/FontPreview.cpp
@@ -29,15 +29,15 @@
#include "FontPreview.h"
#include <kapplication.h>
#include <klocale.h>
-#include <qpainter.h>
-#include <qimage.h>
+#include <tqpainter.h>
+#include <tqimage.h>
#include <stdlib.h>
namespace KFI
{
-CFontPreview::CFontPreview(QWidget *parent, const char *name)
- : QWidget(parent, name),
+CFontPreview::CFontPreview(TQWidget *parent, const char *name)
+ : TQWidget(parent, name),
itsCurrentFace(1),
itsLastWidth(0),
itsLastHeight(0),
@@ -71,7 +71,7 @@ void CFontPreview::showFont()
}
else
{
- QPixmap nullPix;
+ TQPixmap nullPix;
setEraseColor(itsBgndCol);
itsPixmap=nullPix;
@@ -80,9 +80,9 @@ void CFontPreview::showFont()
}
}
-void CFontPreview::paintEvent(QPaintEvent *)
+void CFontPreview::paintEvent(TQPaintEvent *)
{
- QPainter paint(this);
+ TQPainter paint(this);
if(itsPixmap.isNull())
{
@@ -103,14 +103,14 @@ void CFontPreview::paintEvent(QPaintEvent *)
}
}
-QSize CFontPreview::sizeHint() const
+TQSize CFontPreview::sizeHint() const
{
- return QSize(132, 132);
+ return TQSize(132, 132);
}
-QSize CFontPreview::minimumSizeHint() const
+TQSize CFontPreview::minimumSizeHint() const
{
- return QSize(32, 32);
+ return TQSize(32, 32);
}
}