diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-07 15:22:20 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-07 15:22:20 (GMT) |
commit | 0a9aa40dd9865e61f2799a6396ce8dcaa68329c5 (patch) | |
tree | 344836bfd78f247d28149f13ef658f77e954cc8a /src/declarative/qml/qmlmetaproperty.cpp | |
parent | 569dfab376d9f63422791566d1888618934ffdc3 (diff) | |
download | Qt-0a9aa40dd9865e61f2799a6396ce8dcaa68329c5.zip Qt-0a9aa40dd9865e61f2799a6396ce8dcaa68329c5.tar.gz Qt-0a9aa40dd9865e61f2799a6396ce8dcaa68329c5.tar.bz2 |
little imporvements and 1 warning less
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.cpp')
-rw-r--r-- | src/declarative/qml/qmlmetaproperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp index a1ea90d..9c7aff8 100644 --- a/src/declarative/qml/qmlmetaproperty.cpp +++ b/src/declarative/qml/qmlmetaproperty.cpp @@ -806,7 +806,7 @@ bool QmlMetaPropertyPrivate::write(QObject *object, const QmlPropertyCache::Data if (value.userType() == QVariant::Double) { double integral; double fractional = modf(value.toDouble(), &integral); - if (qFuzzyCompare(fractional, (double)0.0)) + if (qFuzzyIsNull(fractional)) v.convert(QVariant::Int); } return writeEnumProperty(prop, coreIdx, object, v, flags); |