_enabled(true)
{
NotificationSettings notificationSettings;
- notificationSettings.initAndNotify("OSXNotification/Enabled", this, SLOT(enabledChanged(QVariant)), true);
+ notificationSettings.initAndNotify("OSXNotification/Enabled", this, &OSXNotificationBackend::enabledChanged, true);
}
void OSXNotificationBackend::enabledChanged(const QVariant &value)
: SettingsPage("Internal", "OSXNotification", parent)
{
_enabledBox = new QCheckBox(tr("Show OS X notifications"));
- connect(_enabledBox, SIGNAL(toggled(bool)), this, SLOT(widgetChanged()));
+ connect(_enabledBox, &QCheckBox::toggled, this, &ConfigWidget::widgetChanged);
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(_enabledBox);
}