Refresh tray icons in case the icon theme is changed, or when
switching between normal and inverted tray icons.
connect(this, SIGNAL(modeChanged(Mode)), this, SLOT(onModeChanged(Mode)));
connect(this, SIGNAL(stateChanged(State)), this, SLOT(onStateChanged(State)));
connect(this, SIGNAL(toolTipChanged(QString, QString)), SLOT(updateToolTip()));
connect(this, SIGNAL(modeChanged(Mode)), this, SLOT(onModeChanged(Mode)));
connect(this, SIGNAL(stateChanged(State)), this, SLOT(onStateChanged(State)));
connect(this, SIGNAL(toolTipChanged(QString, QString)), SLOT(updateToolTip()));
+ connect(this, SIGNAL(iconsChanged()), this, SLOT(updateIcon()));
_blinkTimer.setInterval(750);
_blinkTimer.setSingleShot(false);
_blinkTimer.setInterval(750);
_blinkTimer.setSingleShot(false);
- connect(QtUi::instance(), SIGNAL(iconThemeRefreshed()), this, SLOT(refreshIcons()));
+ connect(this, SIGNAL(iconsChanged()), this, SLOT(refreshIcons()));
refreshIcons();
// Our own SNI service
refreshIcons();
// Our own SNI service
void StatusNotifierItem::refreshIcons()
{
#if QT_VERSION >= 0x050000
void StatusNotifierItem::refreshIcons()
{
#if QT_VERSION >= 0x050000
_trayMenu->addSeparator();
_trayMenu->addAction(_minimizeRestoreAction);
_trayMenu->addAction(coll->action("Quit"));
_trayMenu->addSeparator();
_trayMenu->addAction(_minimizeRestoreAction);
_trayMenu->addAction(coll->action("Quit"));
connect(_trayMenu, SIGNAL(aboutToShow()), SLOT(trayMenuAboutToShow()));
connect(_trayMenu, SIGNAL(aboutToShow()), SLOT(trayMenuAboutToShow()));
+
+ connect(QtUi::instance(), SIGNAL(iconThemeRefreshed()), this, SIGNAL(iconsChanged()));
void SystemTray::invertTrayIconChanged(const QVariant &v)
{
_trayIconInverted = v.toBool();
void SystemTray::invertTrayIconChanged(const QVariant &v)
{
_trayIconInverted = v.toBool();
void modeChanged(Mode mode);
void stateChanged(State state);
void visibilityChanged(bool isVisible);
void modeChanged(Mode mode);
void stateChanged(State state);
void visibilityChanged(bool isVisible);
-
- void activated(SystemTray::ActivationReason);
- void iconChanged(const QIcon &icon);
void animationEnabledChanged(bool);
void toolTipChanged(const QString &title, const QString &subtitle);
void animationEnabledChanged(bool);
void toolTipChanged(const QString &title, const QString &subtitle);
+
+ void activated(SystemTray::ActivationReason);
void messageClicked(uint notificationId);
void messageClosed(uint notificationId);
void messageClicked(uint notificationId);
void messageClosed(uint notificationId);