/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "qtui.h"
-SonnetSettingsPage::SonnetSettingsPage(QWidget *parent)
+SonnetSettingsPage::SonnetSettingsPage(QWidget* parent)
: SettingsPage(tr("Interface"), tr("Spell Checking"), parent)
{
- auto *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);
}
-
bool SonnetSettingsPage::hasDefaults() const
{
return true;
}
-
void SonnetSettingsPage::defaults()
{
_configWidget->slotDefault();
widgetHasChanged();
}
-
void SonnetSettingsPage::load()
{
SettingsPage::load();
}
-
void SonnetSettingsPage::save()
{
_configWidget->save();
SettingsPage::save();
}
-
void SonnetSettingsPage::widgetHasChanged()
{
if (!hasChanged())