summaryrefslogtreecommitdiffstats
path: root/src/pixmapviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pixmapviewer.cpp')
-rw-r--r--src/pixmapviewer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pixmapviewer.cpp b/src/pixmapviewer.cpp
index 565b16c..2a2354b 100644
--- a/src/pixmapviewer.cpp
+++ b/src/pixmapviewer.cpp
@@ -22,10 +22,10 @@
#include <kglobalsettings.h>
#include <kiconloader.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-PixmapViewer::PixmapViewer(QWidget* parent) :
- QWidget(parent)
+PixmapViewer::PixmapViewer(TQWidget* tqparent) :
+ TQWidget(tqparent)
{
setMinimumWidth(KIcon::SizeEnormous);
setMinimumWidth(KIcon::SizeEnormous);
@@ -35,17 +35,17 @@ PixmapViewer::~PixmapViewer()
{
}
-void PixmapViewer::setPixmap(const QPixmap& pixmap)
+void PixmapViewer::setPixmap(const TQPixmap& pixmap)
{
m_pixmap = pixmap;
update();
}
-void PixmapViewer::paintEvent(QPaintEvent* event)
+void PixmapViewer::paintEvent(TQPaintEvent* event)
{
- QWidget::paintEvent(event);
+ TQWidget::paintEvent(event);
- QPainter painter;
+ TQPainter painter;
painter.begin(this);
const int x = (width() - m_pixmap.width()) / 2;
const int y = (height() - m_pixmap.height()) / 2;