Replace obsoleted QProcess::finished(int)

It is replaced by QProcess::finished(int, QProcess::ExitStatus).
This commit is contained in:
Chocobo1
2019-07-01 14:47:53 +08:00
parent 4eff268095
commit e6c448aa4f
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ SearchHandler::SearchHandler(const QString &pattern, const QString &category, co
connect(m_searchProcess, &QProcess::errorOccurred, this, &SearchHandler::processFailed);
connect(m_searchProcess, &QProcess::readyReadStandardOutput, this, &SearchHandler::readSearchOutput);
connect(m_searchProcess, static_cast<void (QProcess::*)(int)>(&QProcess::finished)
connect(m_searchProcess, qOverload<int, QProcess::ExitStatus>(&QProcess::finished)
, this, &SearchHandler::processFinished);
m_searchTimeout->setSingleShot(true);