summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicsitem.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-02-03 03:42:58 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-02-03 03:42:58 (GMT)
commit67c3a18b13eeadf60e9a07b9667ece5c17e9ab7e (patch)
treef96f2fbd22d80fbe862b2539fd9db7246fd6b57f /src/declarative/graphicsitems/qmlgraphicsitem.cpp
parentc504440e135c9f67dfcf8acf6e0c6a4b53bf12ad (diff)
downloadQt-67c3a18b13eeadf60e9a07b9667ece5c17e9ab7e.zip
Qt-67c3a18b13eeadf60e9a07b9667ece5c17e9ab7e.tar.gz
Qt-67c3a18b13eeadf60e9a07b9667ece5c17e9ab7e.tar.bz2
Fix compile on visual, changed NaN checks to use qIsNaN instead of isnan.
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicsitem.cpp')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsitem.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem.cpp b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
index 6835427..f26496e 100644
--- a/src/declarative/graphicsitems/qmlgraphicsitem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
@@ -57,13 +57,12 @@
#include <QFile>
#include <QEvent>
#include <QGraphicsSceneMouseEvent>
+#include <QtCore/qnumeric.h>
#include <QtScript/qscriptengine.h>
#include <QtGui/qgraphicstransform.h>
#include <QtGui/qgraphicseffect.h>
#include <qlistmodelinterface_p.h>
-#include <math.h>
-
QT_BEGIN_NAMESPACE
#ifndef FLT_MAX
@@ -2845,7 +2844,7 @@ qreal QmlGraphicsItem::width() const
void QmlGraphicsItem::setWidth(qreal w)
{
Q_D(QmlGraphicsItem);
- if (isnan(w))
+ if (qIsNaN(w))
return;
d->widthValid = true;
@@ -2917,7 +2916,7 @@ qreal QmlGraphicsItem::height() const
void QmlGraphicsItem::setHeight(qreal h)
{
Q_D(QmlGraphicsItem);
- if (isnan(h))
+ if (qIsNaN(h))
return;
d->heightValid = true;