From e6c448aa4fc0c5ee67acbaa4420856ab7fd60d31 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 1 Jul 2019 14:47:53 +0800 Subject: [PATCH] Replace obsoleted QProcess::finished(int) It is replaced by QProcess::finished(int, QProcess::ExitStatus). --- src/base/search/searchdownloadhandler.cpp | 2 +- src/base/search/searchhandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/search/searchdownloadhandler.cpp b/src/base/search/searchdownloadhandler.cpp index 6dfdb75f8..0887bca8b 100644 --- a/src/base/search/searchdownloadhandler.cpp +++ b/src/base/search/searchdownloadhandler.cpp @@ -40,7 +40,7 @@ SearchDownloadHandler::SearchDownloadHandler(const QString &siteUrl, const QStri , m_downloadProcess {new QProcess {this}} { m_downloadProcess->setEnvironment(QProcess::systemEnvironment()); - connect(m_downloadProcess, static_cast(&QProcess::finished) + connect(m_downloadProcess, qOverload(&QProcess::finished) , this, &SearchDownloadHandler::downloadProcessFinished); const QStringList params { Utils::Fs::toNativePath(m_manager->engineLocation() + "/nova2dl.py"), diff --git a/src/base/search/searchhandler.cpp b/src/base/search/searchhandler.cpp index f0dcb4c55..1d341cdce 100644 --- a/src/base/search/searchhandler.cpp +++ b/src/base/search/searchhandler.cpp @@ -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(&QProcess::finished) + connect(m_searchProcess, qOverload(&QProcess::finished) , this, &SearchHandler::processFinished); m_searchTimeout->setSingleShot(true);