Commit b1050ee1 authored by Francis Herne's avatar Francis Herne
Browse files

Use non-deprecated version of QProcess::finished

Also use QOverload rather than a static_cast.
parent ed2a7e50
......@@ -177,7 +177,7 @@ bool DocfileWizard::run()
worker = new QProcess(this);
QObject::connect(worker, &QProcess::readyReadStandardError, this, &DocfileWizard::processScriptOutput);
QObject::connect(worker, &QProcess::readyReadStandardOutput, this, &DocfileWizard::processScriptOutput);
QObject::connect(worker, static_cast<void(QProcess::*)(int)>(&QProcess::finished), this, &DocfileWizard::processFinished);
QObject::connect(worker, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &DocfileWizard::processFinished);
// can never have too many slashes
outputFile.setFileName(workingDirectory + "/" + outputFilename);
......@@ -238,7 +238,7 @@ void DocfileWizard::processScriptOutput()
scrollbar->setValue(scrollbar->maximum());
}
void DocfileWizard::processFinished(int)
void DocfileWizard::processFinished(int, QProcess::ExitStatus)
{
worker = nullptr;
runButton->setEnabled(true);
......
......@@ -62,7 +62,7 @@ public slots:
bool run();
void updateOutputFilename(const QString& newModuleName);
void processScriptOutput();
void processFinished(int);
void processFinished(int, QProcess::ExitStatus);
void saveAndClose();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment