added a "hide" menu entry in the system tray icon menu
This commit is contained in:
parent
9949c4886a
commit
5811f3d10e
2 changed files with 704 additions and 699 deletions
|
@ -133,6 +133,10 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
||||||
|
|
||||||
pSystemTrayIconMenu->addSeparator();
|
pSystemTrayIconMenu->addSeparator();
|
||||||
|
|
||||||
|
pSystemTrayIconMenu->addAction (
|
||||||
|
tr ( "&Hide " ) + APP_NAME + tr ( " server" ),
|
||||||
|
this, SLOT ( OnSysTrayMenuHide() ) );
|
||||||
|
|
||||||
pSystemTrayIconMenu->setDefaultAction ( pSystemTrayIconMenu->addAction (
|
pSystemTrayIconMenu->setDefaultAction ( pSystemTrayIconMenu->addAction (
|
||||||
tr ( "&Open " ) + APP_NAME + tr ( " server" ),
|
tr ( "&Open " ) + APP_NAME + tr ( " server" ),
|
||||||
this, SLOT ( OnSysTrayMenuOpen() ) ) );
|
this, SLOT ( OnSysTrayMenuOpen() ) ) );
|
||||||
|
|
|
@ -98,6 +98,7 @@ public slots:
|
||||||
void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
|
void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
|
||||||
void OnServerStopped() { UpdateSystemTrayIcon ( false ); }
|
void OnServerStopped() { UpdateSystemTrayIcon ( false ); }
|
||||||
void OnSysTrayMenuOpen() { ShowWindowInForeground(); }
|
void OnSysTrayMenuOpen() { ShowWindowInForeground(); }
|
||||||
|
void OnSysTrayMenuHide() { hide(); }
|
||||||
void OnSysTrayMenuExit() { close(); }
|
void OnSysTrayMenuExit() { close(); }
|
||||||
void OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason );
|
void OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue