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/test/ecma/bbox/bbox.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ksvg/test/ecma/bbox/bbox.js') diff --git a/ksvg/test/ecma/bbox/bbox.js b/ksvg/test/ecma/bbox/bbox.js index 2d692694..88eaa592 100644 --- a/ksvg/test/ecma/bbox/bbox.js +++ b/ksvg/test/ecma/bbox/bbox.js @@ -13,12 +13,12 @@ function bbox_loop(drawit, number) for(var i = 0; i < number; i++) { - var shape = doc.getElementById("test-" + i); - var bbox = shape.getBBox(); + var tqshape = doc.getElementById("test-" + i); + var bbox = tqshape.getBBox(); if(drawit == "true") { - draw_it(doc, bbox, shape, i + 1); + draw_it(doc, bbox, tqshape, i + 1); } else { @@ -27,13 +27,13 @@ function bbox_loop(drawit, number) } } -function do_string(shape, number) +function do_string(tqshape, number) { - var string = "\nShape " + number + "\nX = " + shape.x + "\nY = " + shape.y + "\nW = " + shape.width + "\nH = " + shape.height; + var string = "\nShape " + number + "\nX = " + tqshape.x + "\nY = " + tqshape.y + "\nW = " + tqshape.width + "\nH = " + shape.height; alert(string); } -function draw_it(doc, bbox, shape, number) +function draw_it(doc, bbox, tqshape, number) { var element = doc.createElement("rect"); element.setAttribute("x", bbox.x); @@ -45,7 +45,7 @@ function draw_it(doc, bbox, shape, number) element.setAttribute("stroke-width", "3"); element.setAttribute("id", "bbox" + number); - shape.getParentNode().appendChild(element); + tqshape.getParentNode().appendChild(element); } function gen_buttons(evt, number) -- cgit v1.2.1