added a "hide" menu entry in the system tray icon menu

This commit is contained in:
Volker Fischer 2011-05-21 12:33:11 +00:00
parent 9949c4886a
commit 5811f3d10e
2 changed files with 704 additions and 699 deletions

View file

@ -133,6 +133,10 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
pSystemTrayIconMenu->addSeparator();
pSystemTrayIconMenu->addAction (
tr ( "&Hide " ) + APP_NAME + tr ( " server" ),
this, SLOT ( OnSysTrayMenuHide() ) );
pSystemTrayIconMenu->setDefaultAction ( pSystemTrayIconMenu->addAction (
tr ( "&Open " ) + APP_NAME + tr ( " server" ),
this, SLOT ( OnSysTrayMenuOpen() ) ) );

View file

@ -98,6 +98,7 @@ public slots:
void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
void OnServerStopped() { UpdateSystemTrayIcon ( false ); }
void OnSysTrayMenuOpen() { ShowWindowInForeground(); }
void OnSysTrayMenuHide() { hide(); }
void OnSysTrayMenuExit() { close(); }
void OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason );
};