Gui: move to new style connect()

This commit is contained in:
wmayer
2023-02-01 11:58:00 +01:00
committed by wwmayer
parent 25a63f8750
commit 2e5cb03261
43 changed files with 237 additions and 246 deletions

View File

@@ -91,11 +91,11 @@ NetworkRetriever::NetworkRetriever( QObject * parent )
wget = new QProcess(this);
// if wgets exits emit signal
connect(wget, SIGNAL(finished(int, QProcess::ExitStatus)),
this, SLOT(wgetFinished(int, QProcess::ExitStatus)));
connect(wget, qOverload<int, QProcess::ExitStatus>(&QProcess::finished),
this, &NetworkRetriever::wgetFinished);
// if application quits kill wget immediately to avoid dangling processes
connect( qApp, SIGNAL(lastWindowClosed()), wget, SLOT(kill()) );
connect(qApp, &QApplication::lastWindowClosed, wget, &QProcess::kill);
}
NetworkRetriever::~NetworkRetriever()
@@ -406,7 +406,7 @@ StdCmdDownloadOnlineHelp::StdCmdDownloadOnlineHelp( QObject * parent)
wget->setFollowRelative( false );
wget->setNoParent( true );
connect( wget, SIGNAL( wgetExited() ), this, SLOT( wgetFinished() ) );
connect(wget, &NetworkRetriever::wgetExited, this, &StdCmdDownloadOnlineHelp::wgetFinished);
}
StdCmdDownloadOnlineHelp::~StdCmdDownloadOnlineHelp()