summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 06:26:07 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 06:26:07 (GMT)
commit348e8471b7df101fb71d1c651eb92dcc0f45f6ff (patch)
tree3beef4ef79b343b0f9cf8e7d4ba9469f7984150e /src/declarative
parentd758910f3d8d5eb64f7c7d94e5c9ef9ae259230b (diff)
downloadQt-348e8471b7df101fb71d1c651eb92dcc0f45f6ff.zip
Qt-348e8471b7df101fb71d1c651eb92dcc0f45f6ff.tar.gz
Qt-348e8471b7df101fb71d1c651eb92dcc0f45f6ff.tar.bz2
qreal == float fixes
QTBUG-11853
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativevaluetypescriptclass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativevaluetypescriptclass.cpp b/src/declarative/qml/qdeclarativevaluetypescriptclass.cpp
index f06d6ae..60f2cb3 100644
--- a/src/declarative/qml/qdeclarativevaluetypescriptclass.cpp
+++ b/src/declarative/qml/qdeclarativevaluetypescriptclass.cpp
@@ -168,7 +168,7 @@ void QDeclarativeValueTypeScriptClass::setProperty(Object *obj, const Identifier
ref->type->read(ref->object, ref->property);
QMetaProperty p = ref->type->metaObject()->property(m_lastIndex);
- if (p.isEnumType() && (QMetaType::Type)v.type() == QMetaType::QReal)
+ if (p.isEnumType() && (QMetaType::Type)v.type() == QMetaType::Double)
v = v.toInt();
p.write(ref->type, v);
ref->type->write(ref->object, ref->property, 0);