summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativedom.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-07-02 04:21:38 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-07-02 04:21:38 (GMT)
commite4e6b49f555eae41fac024c1b733736a28812e2e (patch)
tree7a7774224081779ee222b0fce648701f0279547f /src/declarative/qml/qdeclarativedom.cpp
parent00dedffa8ad1fdec14e9e0a9184f49343c42c846 (diff)
downloadQt-e4e6b49f555eae41fac024c1b733736a28812e2e.zip
Qt-e4e6b49f555eae41fac024c1b733736a28812e2e.tar.gz
Qt-e4e6b49f555eae41fac024c1b733736a28812e2e.tar.bz2
Make autotests work with qreal == float (in addition to double).
Task-number: QTBUG-11853
Diffstat (limited to 'src/declarative/qml/qdeclarativedom.cpp')
-rw-r--r--src/declarative/qml/qdeclarativedom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativedom.cpp b/src/declarative/qml/qdeclarativedom.cpp
index a3cddb5..5b30bde 100644
--- a/src/declarative/qml/qdeclarativedom.cpp
+++ b/src/declarative/qml/qdeclarativedom.cpp
@@ -493,7 +493,7 @@ int QDeclarativeDomDynamicProperty::propertyType() const
return QMetaType::type("int");
case QDeclarativeParser::Object::DynamicProperty::Real:
- return QMetaType::type("double");
+ return sizeof(qreal) == sizeof(double) ? QMetaType::type("double") : QMetaType::type("float");
case QDeclarativeParser::Object::DynamicProperty::String:
return QMetaType::type("QString");