-#endif
- KNotification *notification = KNotification::event(type, message, QIcon::fromTheme("dialog-information").pixmap(48), QtUi::mainWindow(),
- KNotification::RaiseWidgetOnActivation
- |KNotification::CloseWhenWidgetActivated
- |KNotification::CloseOnTimeout);
- connect(notification, SIGNAL(activated(uint)), SLOT(notificationActivated()));
+ KNotification* notification = KNotification::event(type,
+ message,
+ icon::get("dialog-information").pixmap(48),
+ QtUi::mainWindow(),
+ KNotification::RaiseWidgetOnActivation | KNotification::CloseWhenWidgetActivated
+ | KNotification::CloseOnTimeout);
+ connect(notification,
+ selectOverload<uint>(&KNotification::activated),
+ this,
+ selectOverload<>(&KNotificationBackend::notificationActivated));