clazy: Convert many old-style connects into function pointer based
[quassel.git] / src / qtui / settingspages / sonnetsettingspage.cpp
index 73b739d..29499db 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2014 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  *
 SonnetSettingsPage::SonnetSettingsPage(QWidget *parent)
     : SettingsPage(tr("Interface"), tr("Spell Checking"), parent)
 {
-    QVBoxLayout *layout = new QVBoxLayout(this);
+    auto *layout = new QVBoxLayout(this);
     _configWidget = new Sonnet::ConfigWidget(this);
     layout->addWidget(_configWidget);
-    connect(_configWidget, SIGNAL(configChanged()), SLOT(widgetHasChanged()));
+    connect(_configWidget, &Sonnet::ConfigWidget::configChanged, this, &SonnetSettingsPage::widgetHasChanged);
 }
 
 
@@ -49,14 +49,14 @@ void SonnetSettingsPage::defaults()
 
 void SonnetSettingsPage::load()
 {
-
+    SettingsPage::load();
 }
 
 
 void SonnetSettingsPage::save()
 {
     _configWidget->save();
-    setChangedState(false);
+    SettingsPage::save();
 }