GUI: modernize connect in ThreadHandler

This commit is contained in:
Daniel Marjamäki 2017-07-31 13:52:03 +02:00
parent efbe7b76ee
commit ac13648d40
1 changed files with 4 additions and 4 deletions

View File

@ -177,11 +177,11 @@ void ThreadHandler::stop()
void ThreadHandler::initialize(ResultsView *view)
{
connect(&mResults, SIGNAL(progress(int, const QString&)),
view, SLOT(progress(int, const QString&)));
connect(&mResults, &ThreadResult::progress,
view, &ResultsView::progress);
connect(&mResults, SIGNAL(error(const ErrorItem &)),
view, SLOT(error(const ErrorItem &)));
connect(&mResults, &ThreadResult::error,
view, &ResultsView::error);
connect(&mResults, SIGNAL(log(const QString &)),
parent(), SLOT(log(const QString &)));