summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsvgrenderer
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-08-21 15:44:57 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-08-24 12:05:13 (GMT)
commit5c9206d8290232e8adc1a6cdb992a7c19d67269a (patch)
tree2f93f9581d5a41e37b37d54a675c07088d237bb1 /tests/auto/qsvgrenderer
parentfdf2a161b59de9e0a6fd059b1d6ba6407f768a25 (diff)
downloadQt-5c9206d8290232e8adc1a6cdb992a7c19d67269a.zip
Qt-5c9206d8290232e8adc1a6cdb992a7c19d67269a.tar.gz
Qt-5c9206d8290232e8adc1a6cdb992a7c19d67269a.tar.bz2
Fixed SVG stroke attributes to work with 'use' tags.
In the process of rewriting the stroke handling code, I also fixed gradients on strokes. Task-number: 202426, 250618 Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qsvgrenderer')
-rw-r--r--tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
index 3d0d0c3..a57e793 100644
--- a/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
+++ b/tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp
@@ -756,7 +756,7 @@ static void opacity_drawSvgAndVerify(const QByteArray &data)
void tst_QSvgRenderer::opacity()
{
- static const char *opacities[] = {"-1,4641", "0", "0.5", "1", "1.337"};
+ static const char *opacities[] = {"-1.4641", "0", "0.5", "1", "1.337"};
static const char *firstColors[] = {"#7f7f7f", "#7f7f7f", "#402051", "blue", "#123456"};
static const char *secondColors[] = {"red", "#bad", "#bedead", "#7f7f7f", "#7f7f7f"};
@@ -796,8 +796,6 @@ void tst_QSvgRenderer::opacity()
data.append("\"/></svg>");
opacity_drawSvgAndVerify(data);
}
- // When support for gradients on strokes has been implemented, add the code below.
- /*
// Stroke-opacity
for (int i = 0; i < 5; ++i) {
QByteArray data("<svg viewBox=\"0 0 10 10\"><defs><linearGradient id=\"grad\"><stop offset=\"0\" stop-color=\"");
@@ -811,7 +809,6 @@ void tst_QSvgRenderer::opacity()
data.append("\" /></svg>");
opacity_drawSvgAndVerify(data);
}
- */
}
void tst_QSvgRenderer::paths()