mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 22:14:02 +01:00
refactor: remove childproc
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user