Fixed a compile error.
This commit is contained in:
parent
bbad30a5b0
commit
80e6980d9e
|
@ -217,10 +217,9 @@ void MultiInstance::instStderr()
|
|||
}
|
||||
}
|
||||
|
||||
void MultiInstance::procFinished(int exitCode, QProcess::ExitStatus exitStatus)
|
||||
void MultiInstance::procChanged(QProcess::ProcessState newState)
|
||||
{
|
||||
Q_UNUSED(exitCode)
|
||||
Q_UNUSED(exitStatus)
|
||||
Q_UNUSED(newState)
|
||||
|
||||
for (auto &&proc : procList)
|
||||
{
|
||||
|
@ -259,7 +258,7 @@ int MultiInstance::start(const QStringList &args)
|
|||
|
||||
connect(proc, &QProcess::readyReadStandardOutput, this, &MultiInstance::instStdout);
|
||||
connect(proc, &QProcess::readyReadStandardError, this, &MultiInstance::instStderr);
|
||||
connect(proc, &QProcess::finished, this, &MultiInstance::procFinished);
|
||||
connect(proc, &QProcess::stateChanged, this, &MultiInstance::procChanged);
|
||||
|
||||
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, proc, &QProcess::terminate);
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ private slots:
|
|||
|
||||
void instStdout();
|
||||
void instStderr();
|
||||
void procFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void procChanged(QProcess::ProcessState newState);
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user