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