modernize: Require member function pointers for Settings::notify()
[quassel.git] / src / qtui / systrayanimationnotificationbackend.cpp
index 4af9109..f542a44 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#include <QIcon>
-
 #include "systrayanimationnotificationbackend.h"
 
 #include "clientsettings.h"
+#include "icon.h"
 #include "mainwin.h"
 #include "qtui.h"
 #include "systemtray.h"
@@ -31,7 +30,7 @@ SystrayAnimationNotificationBackend::SystrayAnimationNotificationBackend(QObject
     : AbstractNotificationBackend(parent)
 {
     NotificationSettings notificationSettings;
-    notificationSettings.initAndNotify("Systray/Alert", this, SLOT(alertChanged(QVariant)), true);
+    notificationSettings.initAndNotify("Systray/Alert", this, &SystrayAnimationNotificationBackend::alertChanged, true);
 }
 
 
@@ -69,7 +68,7 @@ SettingsPage *SystrayAnimationNotificationBackend::createConfigWidget() const
 SystrayAnimationNotificationBackend::ConfigWidget::ConfigWidget(QWidget *parent) : SettingsPage("Internal", "SystrayAnimation", parent)
 {
     ui.setupUi(this);
-    ui.enableAlert->setIcon(QIcon::fromTheme("dialog-information"));
+    ui.enableAlert->setIcon(icon::get("dialog-information"));
 
     ui.attentionBehavior->setEnabled(ui.enableAlert->isChecked());