mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 12:26:58 +03:00
remove qt5compat
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
bf5b03b4ff
commit
074846d72a
11 changed files with 20 additions and 23 deletions
|
|
@ -36,10 +36,10 @@
|
|||
|
||||
#include "LoggedProcess.h"
|
||||
#include <QDebug>
|
||||
#include <QTextDecoder>
|
||||
#include <QStringDecoder>
|
||||
#include "MessageLevel.h"
|
||||
|
||||
LoggedProcess::LoggedProcess(const QTextCodec* output_codec, QObject* parent)
|
||||
LoggedProcess::LoggedProcess(const QStringConverter::Encoding output_codec, QObject* parent)
|
||||
: QProcess(parent), m_err_decoder(output_codec), m_out_decoder(output_codec)
|
||||
{
|
||||
// QProcess has a strange interface... let's map a lot of those into a few.
|
||||
|
|
@ -57,9 +57,9 @@ LoggedProcess::~LoggedProcess()
|
|||
}
|
||||
}
|
||||
|
||||
QStringList LoggedProcess::reprocess(const QByteArray& data, QTextDecoder& decoder)
|
||||
QStringList LoggedProcess::reprocess(const QByteArray& data, QStringDecoder& decoder)
|
||||
{
|
||||
auto str = decoder.toUnicode(data);
|
||||
QString str = decoder(data);
|
||||
|
||||
if (!m_leftover_line.isEmpty()) {
|
||||
str.prepend(m_leftover_line);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue