refactor: remove childproc

This commit is contained in:
tobtoht
2023-03-28 23:04:25 +02:00
parent 0abd323bbb
commit 5f8eb1cb80
8 changed files with 5 additions and 63 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
XmRig::XmRig(const QString &configDir, QObject *parent)
: QObject(parent)
, m_process(new ChildProcess(this))
, m_process(new QProcess(this))
{
m_process->setProcessChannelMode(QProcess::MergedChannels);
connect(m_process, &QProcess::readyReadStandardOutput, this, &XmRig::handleProcessOutput);
+2 -10
View File
@@ -4,15 +4,7 @@
#ifndef FEATHER_XMRIG_H
#define FEATHER_XMRIG_H
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <QRegularExpression>
#include <QtNetwork>
#include <QApplication>
#include <QMainWindow>
#include "utils/childproc.h"
#include <QProcess>
class XmRig : public QObject
{
@@ -36,7 +28,7 @@ private slots:
void handleProcessError(QProcess::ProcessError error);
private:
ChildProcess *m_process;
QProcess *m_process;
QProcess m_killProcess;
bool m_elevated;
};