#6522 Double clicking tray now shows GUI and tray also now has a tooltip

This commit is contained in:
walker0643 2018-01-30 11:54:49 -05:00 committed by Nick Bolton
parent fb27752e3e
commit a33c2cb2b4
1 changed files with 1 additions and 2 deletions

View File

@ -263,6 +263,7 @@ void MainWindow::createTrayIcon()
m_pTrayIcon = new QSystemTrayIcon(this); m_pTrayIcon = new QSystemTrayIcon(this);
m_pTrayIcon->setContextMenu(m_pTrayIconMenu); m_pTrayIcon->setContextMenu(m_pTrayIconMenu);
m_pTrayIcon->setToolTip("Synergy");
connect(m_pTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), connect(m_pTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason))); this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason)));
@ -359,7 +360,6 @@ void MainWindow::setIcon(qSynergyState state)
void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason) void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason)
{ {
#ifndef Q_OS_WIN
if (reason == QSystemTrayIcon::DoubleClick) if (reason == QSystemTrayIcon::DoubleClick)
{ {
if (isVisible()) if (isVisible())
@ -372,7 +372,6 @@ void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason)
activateWindow(); activateWindow();
} }
} }
#endif
} }
void MainWindow::logOutput() void MainWindow::logOutput()