mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +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,7 +36,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <QProcess>
|
||||
#include <QTextDecoder>
|
||||
#include <QStringDecoder>
|
||||
#include "MessageLevel.h"
|
||||
|
||||
/*
|
||||
|
|
@ -49,7 +49,7 @@ class LoggedProcess : public QProcess {
|
|||
enum State { NotRunning, Starting, FailedToStart, Running, Finished, Crashed, Aborted };
|
||||
|
||||
public:
|
||||
explicit LoggedProcess(const QTextCodec* output_codec = QTextCodec::codecForLocale(), QObject* parent = 0);
|
||||
explicit LoggedProcess(QStringConverter::Encoding outputEncoding = QStringConverter::System, QObject* parent = nullptr);
|
||||
virtual ~LoggedProcess();
|
||||
|
||||
State state() const;
|
||||
|
|
@ -77,11 +77,11 @@ class LoggedProcess : public QProcess {
|
|||
private:
|
||||
void changeState(LoggedProcess::State state);
|
||||
|
||||
QStringList reprocess(const QByteArray& data, QTextDecoder& decoder);
|
||||
QStringList reprocess(const QByteArray& data, QStringDecoder& decoder);
|
||||
|
||||
private:
|
||||
QTextDecoder m_err_decoder;
|
||||
QTextDecoder m_out_decoder;
|
||||
QStringDecoder m_err_decoder;
|
||||
QStringDecoder m_out_decoder;
|
||||
QString m_leftover_line;
|
||||
bool m_killed = false;
|
||||
State m_state = NotRunning;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue