X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Flegacysystemtray.cpp;h=3fbe1dcac2129556ac91b31315e12a866591dd71;hp=87ff3dfe880628dd4702e2a61c80766c2f0fbedc;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hpb=714b39660fe19e7f092880019429c8da76ee2bd5 diff --git a/src/qtui/legacysystemtray.cpp b/src/qtui/legacysystemtray.cpp index 87ff3dfe..3fbe1dca 100644 --- a/src/qtui/legacysystemtray.cpp +++ b/src/qtui/legacysystemtray.cpp @@ -32,22 +32,22 @@ LegacySystemTray::LegacySystemTray(QWidget *parent) { #ifndef Q_OS_MAC - connect(_trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), - SLOT(onActivated(QSystemTrayIcon::ActivationReason))); + connect(_trayIcon, &QSystemTrayIcon::activated, + this, &LegacySystemTray::onActivated); #endif - connect(_trayIcon, SIGNAL(messageClicked()), - SLOT(onMessageClicked())); + connect(_trayIcon, &QSystemTrayIcon::messageClicked, + this, &LegacySystemTray::onMessageClicked); _trayIcon->setContextMenu(trayMenu()); _trayIcon->setVisible(false); setMode(Mode::Legacy); - 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())); + connect(this, &SystemTray::visibilityChanged, this, &LegacySystemTray::onVisibilityChanged); + connect(this, &SystemTray::modeChanged, this, &LegacySystemTray::onModeChanged); + connect(this, &SystemTray::toolTipChanged, this, &LegacySystemTray::updateToolTip); + connect(this, &SystemTray::iconsChanged, this, &LegacySystemTray::updateIcon); + connect(this, &SystemTray::currentIconNameChanged, this, &LegacySystemTray::updateIcon); updateIcon(); updateToolTip();