From ac13648d40a688403d5cdd306d67f98caa5b5c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 31 Jul 2017 13:52:03 +0200 Subject: [PATCH] GUI: modernize connect in ThreadHandler --- gui/threadhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/threadhandler.cpp b/gui/threadhandler.cpp index d06721661..831734bf1 100644 --- a/gui/threadhandler.cpp +++ b/gui/threadhandler.cpp @@ -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 &)));