From 9d93c01ba0ce4dc1771491b5b75001d081e817dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 31 Jul 2017 08:17:13 +0200 Subject: [PATCH] GUI: modernize connect in ResultsView --- gui/resultsview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index 3ad749ea0..635850ca3 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -48,9 +48,9 @@ ResultsView::ResultsView(QWidget * parent) : { mUI.setupUi(this); - connect(mUI.mTree, SIGNAL(resultsHidden(bool)), this, SIGNAL(resultsHidden(bool))); - connect(mUI.mTree, SIGNAL(checkSelected(QStringList)), this, SIGNAL(checkSelected(QStringList))); - connect(mUI.mTree, SIGNAL(selectionChanged(const QModelIndex &)), this, SLOT(updateDetails(const QModelIndex &))); + connect(mUI.mTree, &ResultsTree::resultsHidden, this, &ResultsView::resultsHidden); + connect(mUI.mTree, &ResultsTree::checkSelected, this, &ResultsView::checkSelected); + connect(mUI.mTree, &ResultsTree::selectionChanged, this, &ResultsView::updateDetails); } void ResultsView::initialize(QSettings *settings, ApplicationList *list, ThreadHandler *checkThreadHandler)