Commit e58be302 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compiles against qt5.15 (endl other other use Qt:: namespace now)

parent 321f1734
...@@ -459,7 +459,13 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const ...@@ -459,7 +459,13 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const
} }
QTextStream stream(&file); QTextStream stream(&file);
stream.setCodec("UTF-8"); stream.setCodec("UTF-8");
stream << data << endl; stream << data
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl
#endif
;
return file.commit(); return file.commit();
} }
......
Markdown is supported
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