forked from qt-creator/qt-creator
QmlDesigner: Fix build with Qt6.2
Amends b2163f672f
.
Change-Id: Ic3eed8fd632aeadeef214df19a33896e9b524499
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -237,8 +237,8 @@ struct JsonMap<QMap<Key, Value>>
|
|||||||
static QJsonObject json(const QMap<Key, Value> &map)
|
static QJsonObject json(const QMap<Key, Value> &map)
|
||||||
{
|
{
|
||||||
QJsonObject output;
|
QJsonObject output;
|
||||||
for (const auto &[key, val] : map.asKeyValueRange())
|
for (auto it = map.cbegin(), end = map.cend(); it != end; ++it)
|
||||||
output[DesignerIconEnums<Key>::toString(key)] = JsonMap<Value>::json(val);
|
output[DesignerIconEnums<Key>::toString(it.key())] = JsonMap<Value>::json(it.value());
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user