Commit 097aca1d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port QTextStream::setCodec to qt6

parent ab305d63
Pipeline #184410 passed with stage
in 10 minutes and 15 seconds
......@@ -87,7 +87,11 @@ void CSVImportExportPluginInterface::slotExportCVS()
void CSVImportExportPluginInterface::exportToFile(QFile *file, const KContacts::Addressee::List &contacts) const
{
QTextStream stream(file);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
stream.setEncoding(QStringConverter::System);
#else
stream.setCodec(QTextCodec::codecForLocale());
#endif
auto fields = KAddressBookImportExport::ContactFields::allFields();
fields.remove(KAddressBookImportExport::ContactFields::Undefined);
......
Supports Markdown
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