Change-Id: I0e4d61aa400094b3b059c836ee9145c1af989f00
Reviewed-on: http://codereview.qt-project.org/5881
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
while (pos < len && !isdigit(data[pos])) pos++;
if (pos >= len)
return QColor();
- alpha = qRound(strtof(&(data[pos]), 0) * 255);
+#ifndef Q_CC_MSVC
+ const float alphaF = strtof(data + pos, 0);
+#else
+ // MSVC does not have strtof
+ const double alphaF = strtod(data + pos, 0);
+#endif
+ alpha = qRound(alphaF * 255);
}
if (isRgb)
}
}
-struct QGraphicsRotation {
+class QGraphicsRotation {
+public:
static inline void projectedRotate(QMatrix4x4 *matrix, qreal angle, qreal x, qreal y, qreal z)
{
matrix->projectedRotate(angle, x, y, z);