diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/pixmapviewer.cpp | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-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.cpp | 14 |
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; |