#6522 Double clicking tray now shows GUI and tray also now has a tooltip
This commit is contained in:
parent
fb27752e3e
commit
a33c2cb2b4
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue