summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/imagepreview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/imagepreview.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/imagepreview.cpp')
-rw-r--r--kdeprint/cups/imagepreview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeprint/cups/imagepreview.cpp b/kdeprint/cups/imagepreview.cpp
index a7badd09b..7ae5dabf0 100644
--- a/kdeprint/cups/imagepreview.cpp
+++ b/kdeprint/cups/imagepreview.cpp
@@ -19,14 +19,14 @@
#include "imagepreview.h"
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qpaintdevice.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqpaintdevice.h>
// forward definition
-QImage convertImage(const QImage& image, int hue, int saturation, int brightness, int gamma);
+TQImage convertImage(const TQImage& image, int hue, int saturation, int brightness, int gamma);
-ImagePreview::ImagePreview(QWidget *parent, const char *name ) : QWidget(parent,name) {
+ImagePreview::ImagePreview(TQWidget *parent, const char *name ) : TQWidget(parent,name) {
brightness_ = 100;
hue_ = 0;
saturation_ = 100;
@@ -39,7 +39,7 @@ ImagePreview::ImagePreview(QWidget *parent, const char *name ) : QWidget(parent,
ImagePreview::~ImagePreview(){
}
-void ImagePreview::setImage(const QImage& image){
+void ImagePreview::setImage(const TQImage& image){
image_ = image.convertDepth(32);
image_.detach();
resize(image_.size());
@@ -54,7 +54,7 @@ void ImagePreview::setParameters(int brightness, int hue, int saturation, int ga
repaint();
}
-void ImagePreview::paintEvent(QPaintEvent*){
+void ImagePreview::paintEvent(TQPaintEvent*){
QImage tmpImage = convertImage(image_,hue_,(bw_ ? 0 : saturation_),brightness_,gamma_);
int x = (width()-tmpImage.width())/2, y = (height()-tmpImage.height())/2;
@@ -64,7 +64,7 @@ void ImagePreview::paintEvent(QPaintEvent*){
p.drawImage(x,y,tmpImage);
p.end();
- bitBlt(this, QPoint(0, 0), &buffer, buffer.rect(), Qt::CopyROP);
+ bitBlt(this, TQPoint(0, 0), &buffer, buffer.rect(), Qt::CopyROP);
}
void ImagePreview::setBlackAndWhite(bool on){
@@ -72,7 +72,7 @@ void ImagePreview::setBlackAndWhite(bool on){
update();
}
-QSize ImagePreview::minimumSizeHint() const
+TQSize ImagePreview::minimumSizeHint() const
{
return image_.size();
}