summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGImageElementImpl.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/SVGImageElementImpl.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/SVGImageElementImpl.cc')
-rw-r--r--ksvg/impl/SVGImageElementImpl.cc18
1 files changed, 9 insertions, 9 deletions
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<SVGElementImpl *>(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();
}
}