summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGLocatableImpl.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /ksvg/impl/SVGLocatableImpl.cc
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'ksvg/impl/SVGLocatableImpl.cc')
-rw-r--r--ksvg/impl/SVGLocatableImpl.cc26
1 files changed, 13 insertions, 13 deletions
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<SVGShapeImpl *>(this);
+ SVGShapeImpl *tqshape = dynamic_cast<SVGShapeImpl *>(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<SVGElementImpl *>(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<SVGElementImpl *>(this);
- SVGShapeImpl *shape = dynamic_cast<SVGShapeImpl *>(this);
+ SVGShapeImpl *tqshape = dynamic_cast<SVGShapeImpl *>(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<SVGShapeImpl *>(obj);
- if(shape)
- return shape->getBBox()->cache(exec);
+ SVGShapeImpl *tqshape = dynamic_cast<SVGShapeImpl *>(obj);
+ if(tqshape)
+ return tqshape->getBBox()->cache(exec);
else
return obj->getBBox()->cache(exec);
}