summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9drawimage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /libk9copy/k9drawimage.cpp
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/k9drawimage.cpp')
-rw-r--r--libk9copy/k9drawimage.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libk9copy/k9drawimage.cpp b/libk9copy/k9drawimage.cpp
index 89aba8f..4103df9 100644
--- a/libk9copy/k9drawimage.cpp
+++ b/libk9copy/k9drawimage.cpp
@@ -10,10 +10,10 @@
//
//
#include "k9drawimage.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-k9DrawImage::k9DrawImage(QWidget *parent, const char *name)
- : QWidget(parent, name)
+k9DrawImage::k9DrawImage(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
}
@@ -22,19 +22,19 @@ k9DrawImage::~k9DrawImage()
{
}
-void k9DrawImage::setImage(const QImage &_image){
+void k9DrawImage::setImage(const TQImage &_image){
m_pixmap =_image;
- repaint();
+ tqrepaint();
}
-void k9DrawImage::setImage(QString _fileName) {
+void k9DrawImage::setImage(TQString _fileName) {
m_pixmap.load(_fileName);
- repaint();
+ tqrepaint();
}
-void k9DrawImage::paintEvent ( QPaintEvent * ) {
+void k9DrawImage::paintEvent ( TQPaintEvent * ) {
int top,left;
- QPainter p(this);
+ TQPainter p(this);
double wratio=(double)width()/(double)m_pixmap.width();
double hratio=(double)height()/(double)m_pixmap.height();