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 /ksvg/impl/SVGMaskElementImpl.cc | |
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 'ksvg/impl/SVGMaskElementImpl.cc')
-rw-r--r-- | ksvg/impl/SVGMaskElementImpl.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ksvg/impl/SVGMaskElementImpl.cc b/ksvg/impl/SVGMaskElementImpl.cc index 5cd2151e..d0f90974 100644 --- a/ksvg/impl/SVGMaskElementImpl.cc +++ b/ksvg/impl/SVGMaskElementImpl.cc @@ -21,7 +21,7 @@ #include <cfloat> #include <kdebug.h> -#include <qimage.h> +#include <tqimage.h> #include "SVGMaskElement.h" @@ -336,12 +336,12 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin { // Note: r and b reversed - //QImage maskImage(reinterpret_cast<unsigned char *>(imageBits), imageWidth, imageHeight, 32, 0, 0, QImage::IgnoreEndian); + //TQImage maskImage(reinterpret_cast<unsigned char *>(imageBits), imageWidth, imageHeight, 32, 0, 0, TQImage::IgnoreEndian); //maskImage.setAlphaBuffer(true); //maskImage.save("mask.png", "PNG"); } - QByteArray maskData(imageWidth * imageHeight); + TQByteArray maskData(imageWidth * imageHeight); const double epsilon = DBL_EPSILON; // Convert the rgba image into an 8-bit mask, according to the specs. @@ -390,7 +390,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin // The screenToMask matrix is calculated each time the mask is used so we don't // need to set it here. - QWMatrix tempMatrix; + TQWMatrix tempMatrix; return Mask(maskData, tempMatrix, imageWidth, imageHeight); } @@ -444,7 +444,7 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin matrix->scaleNonUniform(1 / xScale, 1 / yScale); - QWMatrix screenToMask = matrix->qmatrix().invert(); + TQWMatrix screenToMask = matrix->qmatrix().invert(); matrix->deref(); mask.setScreenToMask(screenToMask); @@ -453,9 +453,9 @@ SVGMaskElementImpl::Mask SVGMaskElementImpl::createMask(SVGShapeImpl *referencin return mask; } -QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& screenRectangle) +TQByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const TQRect& screenRectangle) { - QByteArray cumulativeMask; + TQByteArray cumulativeMask; do { @@ -475,7 +475,7 @@ QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& s if(!mask.isEmpty()) { - QByteArray maskData = mask.rectangle(screenRectangle); + TQByteArray maskData = mask.rectangle(screenRectangle); if(cumulativeMask.size() == 0) cumulativeMask = maskData; @@ -514,14 +514,14 @@ QByteArray SVGMaskElementImpl::maskRectangle(SVGShapeImpl *shape, const QRect& s return cumulativeMask; } -SVGMaskElementImpl::Mask::Mask(const QByteArray& mask, const QWMatrix& screenToMask, int width, int height) +SVGMaskElementImpl::Mask::Mask(const TQByteArray& mask, const TQWMatrix& screenToMask, int width, int height) : m_width(width), m_height(height), m_mask(mask), m_screenToMask(screenToMask) { } -QByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int width, int height) +TQByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int width, int height) { - QByteArray rect(width * height); + TQByteArray rect(width * height); for(int x = 0; x < width; x++) { @@ -534,7 +534,7 @@ QByteArray SVGMaskElementImpl::Mask::rectangle(int screenX, int screenY, int wid return rect; } -QByteArray SVGMaskElementImpl::Mask::rectangle(const QRect& rect) +TQByteArray SVGMaskElementImpl::Mask::rectangle(const TQRect& rect) { return rectangle(rect.x(), rect.y(), rect.width(), rect.height()); } |