From 4d00db2b42a6ec4dc96c88f623dccd96e79b6caf Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 29 Dec 2009 22:53:00 +0000 Subject: [PATCH] - Encode correctly Float Type using QVariant/JSON (introduced in Qt 4.6) --- src/json.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/json.h b/src/json.h index a524255ef..8c38ec40a 100644 --- a/src/json.h +++ b/src/json.h @@ -47,6 +47,7 @@ namespace json { case QVariant::LongLong: case QVariant::UInt: case QVariant::ULongLong: + case QMetaType::Float: return v.value(); case QVariant::String: {