summaryrefslogtreecommitdiffstats
path: root/tdeprint/cups
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-15 15:08:51 -0600
committerTimothy Pearson <[email protected]>2011-11-15 15:08:51 -0600
commitfb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0 (patch)
treea01fcd88aa65a77c2b2e12ba1a55851ddfe5afcc /tdeprint/cups
parent3fbca5d9a4bd057ed5f9df138333e6c16dbdcc62 (diff)
downloadtdelibs-fb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0.tar.gz
tdelibs-fb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0.zip
Fix kdelibs FTBFS on native TQt3
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();