Utils: One more stringFromKey to keep Qt 6.4 happy

Change-Id: I67f47be369fa60e2f11f20e0ded389962e059ba6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-08-30 12:30:32 +02:00
parent 41184bc9fc
commit 37a17cd6ba

View File

@@ -459,7 +459,8 @@ bool PersistentSettingsWriter::write(const Store &data, QString *errorString) co
const Store::const_iterator cend = data.constEnd();
for (Store::const_iterator it = data.constBegin(); it != cend; ++it) {
w.writeStartElement(ctx.dataElement);
w.writeTextElement(ctx.variableElement, it.key());
// FIXME: stringFromKey() not needed from Qt 6.5 onward.
w.writeTextElement(ctx.variableElement, stringFromKey(it.key()));
writeVariantValue(w, ctx, it.value());
w.writeEndElement();
}