{
NotificationSettings notificationSettings;
notificationSettings.initAndNotify("Systray/ShowBubble", this, SLOT(showBubbleChanged(QVariant)), true);
- notificationSettings.initAndNotify("Systray/Animate", this, SLOT(animateChanged(QVariant)), true);
connect(QtUi::mainWindow()->systemTray(), SIGNAL(messageClicked(uint)), SLOT(notificationActivated(uint)));
connect(QtUi::mainWindow()->systemTray(), SIGNAL(activated(SystemTray::ActivationReason)),
QtUi::mainWindow()->systemTray()->showMessage(title, message, SystemTray::Information, 10000, n.notificationId);
}
- if (_animate)
- QtUi::mainWindow()->systemTray()->setAlert(true);
-
updateToolTip();
}
QtUi::mainWindow()->systemTray()->closeMessage(notificationId);
- //if(!_notifications.count()) //FIXME make configurable
- QtUi::mainWindow()->systemTray()->setAlert(false);
-
updateToolTip();
}
}
-void SystrayNotificationBackend::animateChanged(const QVariant &v)
-{
- _animate = v.toBool();
-}
-
-
void SystrayNotificationBackend::updateToolTip()
{
QtUi::mainWindow()->systemTray()->setToolTip("Quassel IRC",