modernize: Remove old-style slot usage in NetworkModelController
[quassel.git] / src / qtui / settingspages / notificationssettingspage.cpp
index 2a79f67..93922ae 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 #include "qtui.h"
 
 NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
-    : SettingsPage(tr("Interface"), tr("Notifications"), parent),
-    _hasDefaults(false)
+    : SettingsPage(tr("Interface"), tr("Notifications"), parent)
 {
-    QVBoxLayout *layout = new QVBoxLayout(this);
+    auto *layout = new QVBoxLayout(this);
     foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
         SettingsPage *cw = backend->createConfigWidget();
         if (cw) {
             cw->setParent(this);
             _configWidgets.append(cw);
             layout->addWidget(cw);
-            connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
+            connect(cw, &SettingsPage::changed, this, &NotificationsSettingsPage::widgetHasChanged);
             _hasDefaults |= cw->hasDefaults();
         }
     }