QmlDesigner: Fix build with Qt6.2

Amends b2163f672f.

Change-Id: Ic3eed8fd632aeadeef214df19a33896e9b524499
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-01-12 11:03:13 +01:00
parent baa1e3c2e1
commit 184fac8a27

View File

@@ -237,8 +237,8 @@ struct JsonMap<QMap<Key, Value>>
static QJsonObject json(const QMap<Key, Value> &map)
{
QJsonObject output;
for (const auto &[key, val] : map.asKeyValueRange())
output[DesignerIconEnums<Key>::toString(key)] = JsonMap<Value>::json(val);
for (auto it = map.cbegin(), end = map.cend(); it != end; ++it)
output[DesignerIconEnums<Key>::toString(it.key())] = JsonMap<Value>::json(it.value());
return output;
}