summaryrefslogtreecommitdiffstats
path: root/src/pixmapviewer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/pixmapviewer.cpp
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;