diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2009-12-03 23:48:46 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-01-07 00:31:14 (GMT) |
commit | bd532d0cb6da5d09e048192171d7f5263e22eca6 (patch) | |
tree | ffa63e5946d782683b83d8a7a9f428810c74fe25 /src/gui | |
parent | 6b700e2bc14d2b159c2faa6f3fe8ca6d77d42f5b (diff) | |
download | Qt-bd532d0cb6da5d09e048192171d7f5263e22eca6.zip Qt-bd532d0cb6da5d09e048192171d7f5263e22eca6.tar.gz Qt-bd532d0cb6da5d09e048192171d7f5263e22eca6.tar.bz2 |
Fix build on Maemo, force type to qreal.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index fc1863f..ab5773e 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -38,6 +38,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ + // QtCore #include <qdebug.h> #include <qmath.h> @@ -5918,7 +5919,7 @@ static QPixmap generateWavyPixmap(qreal maxRadius, const QPen &pen) if (QPixmapCache::find(key, pixmap)) return pixmap; - const qreal halfPeriod = qMax(qreal(2), radiusBase * 1.61803399); // the golden ratio + const qreal halfPeriod = qMax(qreal(2), radiusBase * qreal(1.61803399)); // the golden ratio const int width = qCeil(100 / (2 * halfPeriod)) * (2 * halfPeriod); const int radius = qFloor(radiusBase); |