GUI: modernize connect in ThreadHandler
This commit is contained in:
parent
efbe7b76ee
commit
ac13648d40
|
@ -177,11 +177,11 @@ void ThreadHandler::stop()
|
||||||
|
|
||||||
void ThreadHandler::initialize(ResultsView *view)
|
void ThreadHandler::initialize(ResultsView *view)
|
||||||
{
|
{
|
||||||
connect(&mResults, SIGNAL(progress(int, const QString&)),
|
connect(&mResults, &ThreadResult::progress,
|
||||||
view, SLOT(progress(int, const QString&)));
|
view, &ResultsView::progress);
|
||||||
|
|
||||||
connect(&mResults, SIGNAL(error(const ErrorItem &)),
|
connect(&mResults, &ThreadResult::error,
|
||||||
view, SLOT(error(const ErrorItem &)));
|
view, &ResultsView::error);
|
||||||
|
|
||||||
connect(&mResults, SIGNAL(log(const QString &)),
|
connect(&mResults, SIGNAL(log(const QString &)),
|
||||||
parent(), SLOT(log(const QString &)));
|
parent(), SLOT(log(const QString &)));
|
||||||
|
|
Loading…
Reference in New Issue