Replaced deprecated QTextStream::setCodec by QTextStream::setEncoding

This commit is contained in:
thunder2 2025-07-21 17:29:40 +02:00
parent 47916ee8c0
commit 6652d7f4f8
7 changed files with 30 additions and 0 deletions

View file

@ -1419,7 +1419,11 @@ bool NewFriendList::exportFriendlist(QString &fileName)
root.appendChild(groups);
QTextStream ts(&file);
#if QT_VERSION >= QT_VERSION_CHECK (6, 0, 0)
ts.setEncoding(QStringConverter::Utf8);
#else
ts.setCodec("UTF-8");
#endif
ts << doc.toString();
file.close();