From dd2c14a0fdc722b4056fb4bc71143f3a8cfd8ed4 Mon Sep 17 00:00:00 2001 From: walker0643 Date: Tue, 30 Jan 2018 11:54:49 -0500 Subject: [PATCH] #6522 Double clicking tray now shows GUI and tray also now has a tooltip --- src/gui/src/MainWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index facff7e0..79cee751 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -263,6 +263,7 @@ void MainWindow::createTrayIcon() m_pTrayIcon = new QSystemTrayIcon(this); m_pTrayIcon->setContextMenu(m_pTrayIconMenu); + m_pTrayIcon->setToolTip("Synergy"); connect(m_pTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason))); @@ -359,7 +360,6 @@ void MainWindow::setIcon(qSynergyState state) void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason) { -#ifndef Q_OS_WIN if (reason == QSystemTrayIcon::DoubleClick) { if (isVisible()) @@ -372,7 +372,6 @@ void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason) activateWindow(); } } -#endif } void MainWindow::logOutput()