summaryrefslogtreecommitdiffstats
path: root/tdeprint/cups
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/cups')
-rw-r--r--tdeprint/cups/imageposition.h2
-rw-r--r--tdeprint/cups/imagepreview.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tdeprint/cups/imageposition.h b/tdeprint/cups/imageposition.h
index 6d6645365..5fbae48da 100644
--- a/tdeprint/cups/imageposition.h
+++ b/tdeprint/cups/imageposition.h
@@ -52,7 +52,7 @@ protected:
private:
int position_;
- QPixmap pix_;
+ TQPixmap pix_;
};
#endif
diff --git a/tdeprint/cups/imagepreview.cpp b/tdeprint/cups/imagepreview.cpp
index 2290f6a96..fb27974da 100644
--- a/tdeprint/cups/imagepreview.cpp
+++ b/tdeprint/cups/imagepreview.cpp
@@ -58,9 +58,9 @@ 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;
- QPixmap buffer(width(), height());
+ TQPixmap buffer(width(), height());
buffer.fill(parentWidget(), 0, 0);
- QPainter p(&buffer);
+ TQPainter p(&buffer);
p.drawImage(x,y,tmpImage);
p.end();