summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/paintcommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/lancelot/paintcommands.cpp')
-rw-r--r--tests/auto/lancelot/paintcommands.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/lancelot/paintcommands.cpp b/tests/auto/lancelot/paintcommands.cpp
index 8735baa3f0..9659659973 100644
--- a/tests/auto/lancelot/paintcommands.cpp
+++ b/tests/auto/lancelot/paintcommands.cpp
@@ -2306,7 +2306,11 @@ void PaintCommands::command_gradient_setRadialExtended(QRegExp re)
"focal radius=%.2f, spread=%d\n",
cx, cy, rad, fx, fy, frad, m_gradientSpread);
+#if QT_VERSION >= 0x040800
QRadialGradient rg(QPointF(cx, cy), rad, QPointF(fx, fy), frad);
+#else
+ QRadialGradient rg(QPointF(cx, cy), rad, QPointF(fx, fy));
+#endif
rg.setStops(m_gradientStops);
rg.setSpread(m_gradientSpread);
rg.setCoordinateMode(m_gradientCoordinate);