summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem.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/gui/graphicsview/qgraphicsitem.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/gui/graphicsview/qgraphicsitem.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 94e9fdd..500bdd0 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -668,6 +668,7 @@
#include <QtCore/qtimer.h>
#include <QtCore/qvariant.h>
#include <QtCore/qvarlengtharray.h>
+#include <QtCore/qnumeric.h>
#include <QtGui/qapplication.h>
#include <QtGui/qbitmap.h>
#include <QtGui/qpainter.h>
@@ -3439,7 +3440,7 @@ void QGraphicsItem::setX(qreal x)
if (d_ptr->inDestructor)
return;
- if (isnan(x))
+ if (qIsNaN(x))
return;
d_ptr->setPosHelper(QPointF(x, d_ptr->pos.y()));
@@ -3466,7 +3467,7 @@ void QGraphicsItem::setY(qreal y)
if (d_ptr->inDestructor)
return;
- if (isnan(y))
+ if (qIsNaN(y))
return;
d_ptr->setPosHelper(QPointF(d_ptr->pos.x(), y));