diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-02-09 09:58:48 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-02-09 10:15:40 (GMT) |
commit | a3d3d2b746f515e197a40a9f87e767d68e25cb1a (patch) | |
tree | cf5fab8db72d88f56a307bccc4a3266ef01b427d /src/xmlpatterns | |
parent | 0df0a2f3d453e3dad33ed75cb62a35cff16b4b64 (diff) | |
download | Qt-a3d3d2b746f515e197a40a9f87e767d68e25cb1a.zip Qt-a3d3d2b746f515e197a40a9f87e767d68e25cb1a.tar.gz Qt-a3d3d2b746f515e197a40a9f87e767d68e25cb1a.tar.bz2 |
Fix Float Conversion in xmlpatterns
On Maemo5 devices there is an automatic conversion to Float.
So qtToXDMType() needs a special case.
Reviewed By: Peter Hartmann
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r-- | src/xmlpatterns/data/qatomicvalue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmlpatterns/data/qatomicvalue.cpp b/src/xmlpatterns/data/qatomicvalue.cpp index 6858e27..c4f3578 100644 --- a/src/xmlpatterns/data/qatomicvalue.cpp +++ b/src/xmlpatterns/data/qatomicvalue.cpp @@ -226,6 +226,8 @@ ItemType::Ptr AtomicValue::qtToXDMType(const QXmlItem &item) /* Fallthrough. */ case QVariant::Time: return BuiltinTypes::xsDateTime; + case QMetaType::Float: + return BuiltinTypes::xsFloat; case QVariant::Double: return BuiltinTypes::xsDouble; default: |