mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
flInitServerLMSWidget
This commit is contained in:
@@ -114,45 +114,57 @@ void MainWindow::changeEvent(QEvent *event)
|
||||
|
||||
void MainWindow::slot_TrayIconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
{
|
||||
switch (reason){
|
||||
case QSystemTrayIcon::Trigger:
|
||||
/* если окно видимо, то оно скрывается,
|
||||
* и наоборот, если скрыто, то разворачивается на экран
|
||||
* */
|
||||
if(!this->isVisible())
|
||||
{
|
||||
slot_TrayMenu_ShowWindow();
|
||||
if(flInitServerLMSWidget)
|
||||
{
|
||||
switch (reason){
|
||||
case QSystemTrayIcon::Trigger:
|
||||
/* если окно видимо, то оно скрывается,
|
||||
* и наоборот, если скрыто, то разворачивается на экран
|
||||
* */
|
||||
if(!this->isVisible())
|
||||
{
|
||||
slot_TrayMenu_ShowWindow();
|
||||
}
|
||||
else
|
||||
{
|
||||
slot_TrayMenu_HideWindow();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
slot_TrayMenu_HideWindow();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::slot_TrayMessageClicked()
|
||||
{
|
||||
if(!this->isVisible())
|
||||
if(flInitServerLMSWidget)
|
||||
{
|
||||
slot_TrayMenu_ShowWindow();
|
||||
if(!this->isVisible())
|
||||
{
|
||||
slot_TrayMenu_ShowWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::slot_TrayMenu_ShowWindow()
|
||||
{
|
||||
this->show();
|
||||
action_ShowWindow->setEnabled(false);
|
||||
action_HideWindow->setEnabled(true);
|
||||
if(flInitServerLMSWidget)
|
||||
{
|
||||
this->show();
|
||||
action_ShowWindow->setEnabled(false);
|
||||
action_HideWindow->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::slot_TrayMenu_HideWindow()
|
||||
{
|
||||
this->hide();
|
||||
action_ShowWindow->setEnabled(true);
|
||||
action_HideWindow->setEnabled(false);
|
||||
if(flInitServerLMSWidget)
|
||||
{
|
||||
this->hide();
|
||||
action_ShowWindow->setEnabled(true);
|
||||
action_HideWindow->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::slot_TrayMenu_Exit()
|
||||
|
||||
Reference in New Issue
Block a user