From 74c05bbf9d92e43a6cf3799355b5f3598884409e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:56:05 -0600 Subject: Remove additional unneeded tq method conversions --- ksvg/impl/SVGContainerImpl.cc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'ksvg/impl/SVGContainerImpl.cc') diff --git a/ksvg/impl/SVGContainerImpl.cc b/ksvg/impl/SVGContainerImpl.cc index 63487227..e4a7c0db 100644 --- a/ksvg/impl/SVGContainerImpl.cc +++ b/ksvg/impl/SVGContainerImpl.cc @@ -36,21 +36,21 @@ SVGContainerImpl::~SVGContainerImpl() SVGRectImpl *SVGContainerImpl::getBBox() { - // just get the union of the tqchildren bboxes + // just get the union of the children bboxes TQRect rect; DOM::Node node = firstChild(); for(; !node.isNull(); node = node.nextSibling()) { SVGElementImpl *elem = ownerDoc()->getElementFromHandle(node.handle()); - SVGShapeImpl *tqshape = dynamic_cast(elem); + SVGShapeImpl *shape = dynamic_cast(elem); SVGTestsImpl *tests = dynamic_cast(elem); SVGStylableImpl *style = dynamic_cast(elem); bool ok = tests ? tests->ok() : true; - if(tqshape && style && ok && style->getVisible() && style->getDisplay()) + if(shape && style && ok && style->getVisible() && style->getDisplay()) { - SVGRectImpl *current = tqshape->getBBox(); + SVGRectImpl *current = shape->getBBox(); rect = rect.unite(current->qrect()); current->deref(); } @@ -90,21 +90,21 @@ void SVGContainerImpl::update(CanvasItemUpdate reason, int param1, int param2) for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { - SVGShapeImpl *tqshape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); - if(tqshape) - tqshape->update(reason, param1, param2); + SVGShapeImpl *shape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); + if(shape) + shape->update(reason, param1, param2); } } -void SVGContainerImpl::tqinvalidate(KSVGCanvas *c, bool recalc) +void SVGContainerImpl::invalidate(KSVGCanvas *c, bool recalc) { - SVGShapeImpl::tqinvalidate(c, recalc); + SVGShapeImpl::invalidate(c, recalc); for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { - SVGShapeImpl *tqshape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); - if(tqshape) - tqshape->tqinvalidate(c, recalc); + SVGShapeImpl *shape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); + if(shape) + shape->invalidate(c, recalc); } } @@ -114,9 +114,9 @@ void SVGContainerImpl::setReferenced(bool referenced) for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { - SVGShapeImpl *tqshape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); - if(tqshape) - tqshape->setReferenced(referenced); + SVGShapeImpl *shape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); + if(shape) + shape->setReferenced(referenced); } } @@ -126,9 +126,9 @@ void SVGContainerImpl::draw() for(DOM::Node node = firstChild(); !node.isNull(); node = node.nextSibling()) { - SVGShapeImpl *tqshape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); - if(tqshape) - tqshape->draw(); + SVGShapeImpl *shape = dynamic_cast(ownerDoc()->getElementFromHandle(node.handle())); + if(shape) + shape->draw(); } } -- cgit v1.2.1