Commit 33684929 authored by Volker Krause's avatar Volker Krause
Browse files

Also accept JSON numbers when reading a a string property

parent b833d321
......@@ -84,6 +84,9 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
switch (prop.type()) {
case QVariant::String:
if (v.isDouble()) {
return QString::number(v.toDouble());
}
return v.toString();
case QVariant::Date:
return QDate::fromString(v.toString(), Qt::ISODate);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment