X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fknotificationbackend.cpp;h=4faea24c23ab38ba560f27034dfc2bcb3d27306f;hp=9ca881efc9fe88b29e4ebb0eaec24a39f33513d3;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=42ab7cc22c4702716db2b8bfa1d4545169f772e6 diff --git a/src/qtui/knotificationbackend.cpp b/src/qtui/knotificationbackend.cpp index 9ca881ef..4faea24c 100644 --- a/src/qtui/knotificationbackend.cpp +++ b/src/qtui/knotificationbackend.cpp @@ -31,12 +31,13 @@ #include "mainwin.h" #include "networkmodel.h" #include "qtui.h" +#include "util.h" KNotificationBackend::KNotificationBackend(QObject *parent) : AbstractNotificationBackend(parent) { - connect(QtUi::mainWindow()->systemTray(), SIGNAL(activated(SystemTray::ActivationReason)), - SLOT(notificationActivated(SystemTray::ActivationReason))); + connect(QtUi::mainWindow()->systemTray(), &SystemTray::activated, + this, selectOverload(&KNotificationBackend::notificationActivated)); updateToolTip(); } @@ -61,7 +62,7 @@ void KNotificationBackend::notify(const Notification &n) KNotification::RaiseWidgetOnActivation |KNotification::CloseWhenWidgetActivated |KNotification::CloseOnTimeout); - connect(notification, SIGNAL(activated(uint)), SLOT(notificationActivated())); + connect(notification, selectOverload(&KNotification::activated), this, selectOverload<>(&KNotificationBackend::notificationActivated)); notification->setActions(QStringList("View")); notification->setProperty("notificationId", n.notificationId); @@ -145,7 +146,7 @@ KNotificationBackend::ConfigWidget::ConfigWidget(QWidget *parent) : SettingsPage QVBoxLayout *layout = new QVBoxLayout(this); layout->addWidget(_widget); - connect(_widget, SIGNAL(changed(bool)), SLOT(widgetChanged(bool))); + connect(_widget, &KNotifyConfigWidget::changed, this, &ConfigWidget::widgetChanged); }