From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksvg/impl/SVGLocatableImpl.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ksvg/impl/SVGLocatableImpl.cc') diff --git a/ksvg/impl/SVGLocatableImpl.cc b/ksvg/impl/SVGLocatableImpl.cc index 0ae143fa..87ccd604 100644 --- a/ksvg/impl/SVGLocatableImpl.cc +++ b/ksvg/impl/SVGLocatableImpl.cc @@ -79,9 +79,9 @@ SVGMatrixImpl *SVGLocatableImpl::getTransformToElement(SVGElementImpl *) return ret; } -void SVGLocatableImpl::updateCachedScreenCTM(const SVGMatrixImpl *parentScreenCTM) +void SVGLocatableImpl::updateCachedScreenCTM(const SVGMatrixImpl *tqparentScreenCTM) { - m_cachedScreenCTM->copy(parentScreenCTM); + m_cachedScreenCTM->copy(tqparentScreenCTM); const SVGMatrixImpl *local = localMatrix(); @@ -92,13 +92,13 @@ void SVGLocatableImpl::updateCachedScreenCTM(const SVGMatrixImpl *parentScreenCT // Notify the element onScreenCTMUpdated(); - SVGShapeImpl *shape = dynamic_cast(this); + SVGShapeImpl *tqshape = dynamic_cast(this); - if(shape) + if(tqshape) { // TODO: Update due to matrix animations - //if(shape->item()) - // shape->item()->update(updateReason); + //if(tqshape->item()) + // tqshape->item()->update(updateReason); SVGElementImpl *element = dynamic_cast(this); @@ -114,14 +114,14 @@ void SVGLocatableImpl::updateCachedScreenCTM(const SVGMatrixImpl *parentScreenCT } } -void SVGLocatableImpl::checkCachedScreenCTM(const SVGMatrixImpl *parentScreenCTM) +void SVGLocatableImpl::checkCachedScreenCTM(const SVGMatrixImpl *tqparentScreenCTM) { if(m_cachedScreenCTMIsValid) { SVGElementImpl *element = dynamic_cast(this); - SVGShapeImpl *shape = dynamic_cast(this); + SVGShapeImpl *tqshape = dynamic_cast(this); - if(shape) + if(tqshape) { DOM::Node node = element->firstChild(); for(; !node.isNull(); node = node.nextSibling()) @@ -135,7 +135,7 @@ void SVGLocatableImpl::checkCachedScreenCTM(const SVGMatrixImpl *parentScreenCTM } } else - updateCachedScreenCTM(parentScreenCTM); + updateCachedScreenCTM(tqparentScreenCTM); } // Ecma stuff @@ -184,9 +184,9 @@ Value SVGLocatableImplProtoFunc::call(ExecState *exec, Object &thisObj, const Li return container->getBBox()->cache(exec); else { - SVGShapeImpl *shape = dynamic_cast(obj); - if(shape) - return shape->getBBox()->cache(exec); + SVGShapeImpl *tqshape = dynamic_cast(obj); + if(tqshape) + return tqshape->getBBox()->cache(exec); else return obj->getBBox()->cache(exec); } -- cgit v1.2.3