diff options
Diffstat (limited to 'libk9copy/k9drawimage.cpp')
-rw-r--r-- | libk9copy/k9drawimage.cpp | 18 |
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(); |