From a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 24 Mar 2017 18:18:49 +0100 Subject: Change to new style connect syntax Quite some code churn, but I like the idea that wrong connections are compile time errors. Since I had to get rid of default arguments in Slots, this simplified things in doPopulateByFolder... --- indexerdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indexerdialog.cpp') diff --git a/indexerdialog.cpp b/indexerdialog.cpp index 0722bad..c9e6ca3 100644 --- a/indexerdialog.cpp +++ b/indexerdialog.cpp @@ -12,9 +12,9 @@ IndexerDialog::IndexerDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(paren //buttons QPushButton *startB = new QPushButton(tr("Start")); - connect(startB, SIGNAL(clicked()), mIndexer, SLOT(startIndexing())); + connect(startB, &QPushButton::clicked, mIndexer, &IndexerWidget::startIndexing); QPushButton *stopB = new QPushButton(tr("Stop")); - connect(stopB, SIGNAL(clicked()), mIndexer, SLOT(stopIndexing())); + connect(stopB, &QPushButton::clicked, mIndexer, &IndexerWidget::stopIndexing); QHBoxLayout *buttonLayout = new QHBoxLayout; buttonLayout->addStretch(); buttonLayout->addWidget(startB); -- cgit v1.2.3-70-g09d2