-void LegacySystemTray::syncLegacyIcon()
-{
- _trayIcon->setIcon(stateIcon());
-
-#if defined Q_WS_MAC || defined Q_WS_WIN
- QString tooltip = QString("%1").arg(toolTipTitle());
- if (!toolTipSubTitle().isEmpty())
- tooltip += QString("\n%1").arg(toolTipSubTitle());
-#else
- QString tooltip = QString("<b>%1</b>").arg(toolTipTitle());
- if (!toolTipSubTitle().isEmpty())
- tooltip += QString("<br>%1").arg(toolTipSubTitle());
-#endif
+ connect(this, SIGNAL(visibilityChanged(bool)), this, SLOT(onVisibilityChanged(bool)));
+ connect(this, SIGNAL(modeChanged(Mode)), this, SLOT(onModeChanged(Mode)));
+ connect(this, SIGNAL(toolTipChanged(QString, QString)), SLOT(updateToolTip()));
+ connect(this, SIGNAL(iconsChanged()), this, SLOT(updateIcon()));
+ connect(this, SIGNAL(currentIconNameChanged()), this, SLOT(updateIcon()));