diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kviewshell/renderedDocumentPagePixmap.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/renderedDocumentPagePixmap.cpp')
-rw-r--r-- | kviewshell/renderedDocumentPagePixmap.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kviewshell/renderedDocumentPagePixmap.cpp b/kviewshell/renderedDocumentPagePixmap.cpp index aaa06878..f7f91ed9 100644 --- a/kviewshell/renderedDocumentPagePixmap.cpp +++ b/kviewshell/renderedDocumentPagePixmap.cpp @@ -22,7 +22,7 @@ #include <kimageeffect.h> #include <kdebug.h> -#include <qimage.h> +#include <tqimage.h> #include "kvsprefs.h" #include "renderedDocumentPagePixmap.h" @@ -38,39 +38,39 @@ RenderedDocumentPagePixmap::~RenderedDocumentPagePixmap() } -QPainter* RenderedDocumentPagePixmap::getPainter() +TQPainter* RenderedDocumentPagePixmap::getPainter() { if (paintingActive()) { kdError(1223) << "RenderedDocumentPagePixmap::getPainter() called when painting was active" << endl; return 0; } else - return new QPainter(this); + return new TQPainter(this); } void RenderedDocumentPagePixmap::resize(int width, int height) { - QPixmap::resize(width, height); + TQPixmap::resize(width, height); if(_accessiblePixmap) _accessiblePixmap->resize(width, height); dirty = true; } -void RenderedDocumentPagePixmap::resize(const QSize& size) +void RenderedDocumentPagePixmap::resize(const TQSize& size) { resize(size.width(), size.height()); } -QPixmap RenderedDocumentPagePixmap::accessiblePixmap() +TQPixmap RenderedDocumentPagePixmap::accessiblePixmap() { if (!_accessiblePixmap || dirty) { - QImage backImage = this->convertToImage(); + TQImage backImage = this->convertToImage(); switch (KVSPrefs::renderMode()) { case KVSPrefs::EnumRenderMode::Inverted: - // Invert image pixels using QImage internal function + // Invert image pixels using TQImage internal function backImage.invertPixels(false); break; case KVSPrefs::EnumRenderMode::Recolor: @@ -105,7 +105,7 @@ QPixmap RenderedDocumentPagePixmap::accessiblePixmap() break; } if (!_accessiblePixmap) - _accessiblePixmap = new QPixmap(width(), height()); + _accessiblePixmap = new TQPixmap(width(), height()); _accessiblePixmap->convertFromImage(backImage); dirty = false; |