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/SVGImageElementImpl.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ksvg/impl/SVGImageElementImpl.cc') diff --git a/ksvg/impl/SVGImageElementImpl.cc b/ksvg/impl/SVGImageElementImpl.cc index 49f48e7d..19152095 100644 --- a/ksvg/impl/SVGImageElementImpl.cc +++ b/ksvg/impl/SVGImageElementImpl.cc @@ -320,10 +320,10 @@ void SVGImageElementImpl::removeItem(KSVGCanvas *c) void SVGImageElementImpl::setupSVGElement(SVGSVGElementImpl *svg) { // Set up the root svg for an svg image. - svg->setAttributeInternal("x", TQString("%1").arg(x()->baseVal()->value())); - svg->setAttributeInternal("y", TQString("%1").arg(y()->baseVal()->value())); - svg->setAttributeInternal("width", TQString("%1").arg(width()->baseVal()->value())); - svg->setAttributeInternal("height", TQString("%1").arg(height()->baseVal()->value())); + svg->setAttributeInternal("x", TQString("%1").tqarg(x()->baseVal()->value())); + svg->setAttributeInternal("y", TQString("%1").tqarg(y()->baseVal()->value())); + svg->setAttributeInternal("width", TQString("%1").tqarg(width()->baseVal()->value())); + svg->setAttributeInternal("height", TQString("%1").tqarg(height()->baseVal()->value())); TQString par = getAttribute("preserveAspectRatio").string().stripWhiteSpace(); @@ -353,7 +353,7 @@ void SVGImageElementImpl::onScreenCTMUpdated() SVGMatrixImpl *ctm = getScreenCTM(); m_svgRoot->setRootParentScreenCTM(ctm); - m_svgRoot->invalidateCachedMatrices(); + m_svgRoot->tqinvalidateCachedMatrices(); m_svgRoot->ownerDoc()->syncCachedMatrices(); } } @@ -380,7 +380,7 @@ bool SVGImageElementImpl::prepareMouseEvent(const TQPoint &p, const TQPoint &, S if(test && m_item) { - if(m_item->bbox().contains(p)) + if(m_item->bbox().tqcontains(p)) { mev->setTarget(dynamic_cast(this)); return true; @@ -408,7 +408,7 @@ void SVGImageElementImpl::setImage(TQImage *image) if(m_item) { - ownerDoc()->canvas()->invalidate(m_item, false); + ownerDoc()->canvas()->tqinvalidate(m_item, false); ownerDoc()->rerender(); } } @@ -508,12 +508,12 @@ void SVGImageElementImpl::applyColorProfile(SVGColorProfileElementImpl *profile, if(image->m_image) { - // Image is already painted, we apply the color profile and repaint it + // Image is already painted, we apply the color profile and tqrepaint it image->applyColorProfile(); if(image->item()) { - image->ownerDoc()->canvas()->invalidate(image->item(), false); + image->ownerDoc()->canvas()->tqinvalidate(image->item(), false); image->ownerDoc()->rerender(); } } -- cgit v1.2.1