summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-25 16:10:08 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-05-25 16:10:08 (GMT)
commit305ce9ea67c11826d91c032ead55edfd5e15462f (patch)
treedc1eb43877c372a1d5452d7a46c8614ef1bd682c
parenta731cb5c1765bc3ab71469e86ec0533e5a5c18a5 (diff)
downloadQt-305ce9ea67c11826d91c032ead55edfd5e15462f.zip
Qt-305ce9ea67c11826d91c032ead55edfd5e15462f.tar.gz
Qt-305ce9ea67c11826d91c032ead55edfd5e15462f.tar.bz2
fix warning in QtSvg if qreal == float
Reviewed-by: mauricek
-rw-r--r--src/svg/qsvggenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvggenerator.cpp b/src/svg/qsvggenerator.cpp
index e822da5..fd4c875 100644
--- a/src/svg/qsvggenerator.cpp
+++ b/src/svg/qsvggenerator.cpp
@@ -261,7 +261,7 @@ public:
constantAlpha &= (stops.at(i).second.alpha() == alpha);
if (!constantAlpha) {
- const qreal spacing = 0.02;
+ const qreal spacing = qreal(0.02);
QGradientStops newStops;
QRgb fromColor = PREMUL(stops.at(0).second.rgba());
QRgb toColor;