X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.cpp;h=a0f00d80dc74d54dd355c547808fb39f85cc6c8e;hb=adb89541c8583c2e0aca8893287b081c801ae7be;hp=c6be4baab895e0671ac2778e9291b6c602029a32;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.cpp b/src/qtui/systraynotificationbackend.cpp index c6be4baa..a0f00d80 100644 --- a/src/qtui/systraynotificationbackend.cpp +++ b/src/qtui/systraynotificationbackend.cpp @@ -39,7 +39,6 @@ SystrayNotificationBackend::SystrayNotificationBackend(QObject *parent) { 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)), @@ -63,9 +62,6 @@ void SystrayNotificationBackend::notify(const Notification &n) QtUi::mainWindow()->systemTray()->showMessage(title, message, SystemTray::Information, 10000, n.notificationId); } - if (_animate) - QtUi::mainWindow()->systemTray()->setAlert(true); - updateToolTip(); } @@ -82,9 +78,6 @@ void SystrayNotificationBackend::close(uint notificationId) QtUi::mainWindow()->systemTray()->closeMessage(notificationId); - //if(!_notifications.count()) //FIXME make configurable - QtUi::mainWindow()->systemTray()->setAlert(false); - updateToolTip(); } @@ -133,12 +126,6 @@ void SystrayNotificationBackend::showBubbleChanged(const QVariant &v) } -void SystrayNotificationBackend::animateChanged(const QVariant &v) -{ - _animate = v.toBool(); -} - - void SystrayNotificationBackend::updateToolTip() { QtUi::mainWindow()->systemTray()->setToolTip("Quassel IRC",