modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / qtui / settingspages / highlightsettingspage.cpp
index ae2b90a..f881645 100644 (file)
@@ -99,7 +99,7 @@ HighlightSettingsPage::HighlightSettingsPage(QWidget *parent)
         ui.localHighlightsLabel->setText(tr("Local Highlights apply to this device only"));
     }
 
-    connect(ui.add, SIGNAL(clicked(bool)), this, SLOT(addNewRow()));
+    connect(ui.add, &QAbstractButton::clicked, this, [this]() { addNewRow(); });
     connect(ui.remove, &QAbstractButton::clicked, this, &HighlightSettingsPage::removeSelectedRows);
     //TODO: search for a better signal (one that emits everytime a selection has been changed for one item)
     connect(ui.highlightTable, &QTableWidget::itemClicked, this, &HighlightSettingsPage::selectRow);