summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-02-09 09:58:48 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-02-09 10:15:40 (GMT)
commita3d3d2b746f515e197a40a9f87e767d68e25cb1a (patch)
treecf5fab8db72d88f56a307bccc4a3266ef01b427d /src/xmlpatterns
parent0df0a2f3d453e3dad33ed75cb62a35cff16b4b64 (diff)
downloadQt-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.cpp2
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: