Drop Qt5: Utils: Get rid of QOverload

Change-Id: I864bfb18668fd325badd34003adf494c7924f86b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-19 22:32:39 +02:00
parent d7b248baec
commit 74ea4dc07d
10 changed files with 19 additions and 32 deletions

View File

@@ -353,12 +353,9 @@ public:
: m_process(new ProcessHelper(this))
, m_blockingImpl(new QProcessBlockingImpl(m_process))
{
connect(m_process, &QProcess::started,
this, &QProcessImpl::handleStarted);
connect(m_process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
this, &QProcessImpl::handleFinished);
connect(m_process, &QProcess::errorOccurred,
this, &QProcessImpl::handleError);
connect(m_process, &QProcess::started, this, &QProcessImpl::handleStarted);
connect(m_process, &QProcess::finished, this, &QProcessImpl::handleFinished);
connect(m_process, &QProcess::errorOccurred, this, &QProcessImpl::handleError);
connect(m_process, &QProcess::readyReadStandardOutput, this, [this] {
emit readyRead(m_process->readAllStandardOutput(), {});
});