Browse Source

Don't use removed QTextStream::setCodec()

QTextStream encodes as UTF-8 by default.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 4 years ago
parent
commit
561fbf2cca
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 2
      src/app/filelogger.cpp

2
src/app/filelogger.cpp

@ -126,7 +126,9 @@ void FileLogger::addLogMessage(const Log::Msg &msg) @@ -126,7 +126,9 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
if (!m_logFile.isOpen()) return;
QTextStream stream(&m_logFile);
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
stream.setCodec("UTF-8");
#endif
switch (msg.type)
{

Loading…
Cancel
Save