summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGPatternElementImpl.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /ksvg/impl/SVGPatternElementImpl.cc
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-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/SVGPatternElementImpl.cc')
-rw-r--r--ksvg/impl/SVGPatternElementImpl.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/ksvg/impl/SVGPatternElementImpl.cc b/ksvg/impl/SVGPatternElementImpl.cc
index 0b591487..24d03239 100644
--- a/ksvg/impl/SVGPatternElementImpl.cc
+++ b/ksvg/impl/SVGPatternElementImpl.cc
@@ -47,7 +47,7 @@ using namespace KSVG;
#include "ksvg_bridge.h"
#include "ksvg_ecma.h"
-QValueList<SVGPatternElementImpl *> SVGPatternElementImpl::m_patternElements;
+TQValueList<SVGPatternElementImpl *> SVGPatternElementImpl::m_patternElements;
SVGPatternElementImpl::SVGPatternElementImpl(DOM::ElementImpl *impl) : SVGElementImpl(impl), SVGURIReferenceImpl(), SVGTestsImpl(), SVGLangSpaceImpl(), SVGExternalResourcesRequiredImpl(), SVGStylableImpl(this), SVGFitToViewBoxImpl(), SVGPaintServerImpl()
{
@@ -293,7 +293,7 @@ void SVGPatternElementImpl::setAttributes()
void SVGPatternElementImpl::flushCachedTiles()
{
- QValueList<SVGPatternElementImpl *>::iterator it;
+ TQValueList<SVGPatternElementImpl *>::iterator it;
for(it = m_patternElements.begin(); it != m_patternElements.end(); it++)
{
@@ -304,11 +304,11 @@ void SVGPatternElementImpl::flushCachedTiles()
}
}
-QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight)
+TQImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int imageWidth, int imageHeight)
{
converter()->finalize(referencingElement, ownerSVGElement(), patternUnits()->baseVal());
- QImage image(imageWidth, imageHeight, 32);
+ TQImage image(imageWidth, imageHeight, 32);
image.setAlphaBuffer(true);
if(m_canvas == 0)
@@ -376,15 +376,15 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
if(getOverflow())
{
- QPtrList<CanvasItem> items = m_canvas->allItems();
- QRect allItemsBBox;
+ TQPtrList<CanvasItem> items = m_canvas->allItems();
+ TQRect allItemsBBox;
- QPtrListIterator<CanvasItem> it(items);
+ TQPtrListIterator<CanvasItem> it(items);
CanvasItem *item;
while((item = *it) != 0)
{
- QRect bbox = item->bbox();
+ TQRect bbox = item->bbox();
allItemsBBox |= bbox;
++it;
}
@@ -404,7 +404,7 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
{
if(tileX != 0 || tileY !=0)
{
- QPoint panPoint(-(tileX * imageWidth), -(tileY * imageHeight));
+ TQPoint panPoint(-(tileX * imageWidth), -(tileY * imageHeight));
m_canvas->update(panPoint, false);
}
}
@@ -423,7 +423,7 @@ QImage SVGPatternElementImpl::createTile(SVGShapeImpl *referencingElement, int i
return image;
}
-void SVGPatternElementImpl::reference(const QString &href)
+void SVGPatternElementImpl::reference(const TQString &href)
{
// Copy attributes
SVGElementImpl *src = ownerSVGElement()->getElementById(href);
@@ -445,7 +445,7 @@ void SVGPatternElementImpl::finalizePaintServer()
// inside a pattern has finished loading.
m_tileCache.clear();
- QString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
+ TQString _href = SVGURIReferenceImpl::getTarget(href()->baseVal().string());
if(!_href.isEmpty())
reference(_href);
}
@@ -483,8 +483,8 @@ SVGPatternElementImpl::Tile SVGPatternElementImpl::createTile(SVGShapeImpl *refe
if(imageWidth > 0 && imageHeight > 0)
{
- QSize size(imageWidth, imageHeight);
- QImage image;
+ TQSize size(imageWidth, imageHeight);
+ TQImage image;
if(!m_tileCache.find(size, image))
{
@@ -497,7 +497,7 @@ SVGPatternElementImpl::Tile SVGPatternElementImpl::createTile(SVGShapeImpl *refe
double adjustYScale = tileHeight / imageHeight;
matrix->scaleNonUniform(adjustXScale, adjustYScale);
- QWMatrix screenToTile = matrix->qmatrix().invert();
+ TQWMatrix screenToTile = matrix->qmatrix().invert();
tile = Tile(image, screenToTile);
}