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

Merge branch 'release/21.08'

parents e0766115 274e3878
......@@ -160,6 +160,11 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
switch (prop.type()) {
case QVariant::String:
if (v.isDouble()) {
double i = 0.0;
const auto frac = std::modf(v.toDouble(), &i);
if (frac == 0.0) {
return QString::number(static_cast<uint64_t>(i));
return QString::number(v.toDouble());
return v.toString();
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