remove qt5compat

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2025-09-24 13:49:17 +03:00
parent bf5b03b4ff
commit 074846d72a
11 changed files with 20 additions and 23 deletions

View File

@@ -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);