X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fosxnotificationbackend.mm;h=ba4cd202bcda441d89eff8d59eed5ed3b5829387;hp=738ee265d26387f20326e5245daa58ac5956cc22;hb=1f21c1f9613031ae263eeed0c4883bfcd5488343;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e diff --git a/src/qtui/osxnotificationbackend.mm b/src/qtui/osxnotificationbackend.mm index 738ee265..ba4cd202 100644 --- a/src/qtui/osxnotificationbackend.mm +++ b/src/qtui/osxnotificationbackend.mm @@ -49,7 +49,7 @@ OSXNotificationBackend::OSXNotificationBackend(QObject *parent) _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) @@ -86,7 +86,7 @@ OSXNotificationBackend::ConfigWidget::ConfigWidget(QWidget *parent) : 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); }