diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-07-02 04:21:38 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-07-02 04:21:38 (GMT) |
commit | e4e6b49f555eae41fac024c1b733736a28812e2e (patch) | |
tree | 7a7774224081779ee222b0fce648701f0279547f /src/declarative/qml/qdeclarativedom.cpp | |
parent | 00dedffa8ad1fdec14e9e0a9184f49343c42c846 (diff) | |
download | Qt-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.cpp | 2 |
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"); |