mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
initialize вместо singleShot
This commit is contained in:
@@ -67,10 +67,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
//slot_Tray_ShowMessage(tr("Starting the server..."));
|
||||
|
||||
ui->verticalLayout_Main->addWidget(serverLMSWidget);
|
||||
|
||||
//Отложенная инициализация (для serverLMSWidget)
|
||||
QTimer::singleShot(1000, this, &MainWindow::slot_LazyInitialization);
|
||||
ui->verticalLayout_Main->addWidget(serverLMSWidget);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@@ -112,6 +109,11 @@ void MainWindow::changeEvent(QEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::initialize()
|
||||
{
|
||||
serverLMSWidget->startInitialization();
|
||||
}
|
||||
|
||||
void MainWindow::slot_TrayIconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
{
|
||||
if(flInitServerLMSWidget)
|
||||
@@ -198,11 +200,6 @@ void MainWindow::slot_updateStateServer(EStateServer stateServer, EStateBlockAut
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::slot_LazyInitialization()
|
||||
{
|
||||
serverLMSWidget->startInitialization();
|
||||
}
|
||||
|
||||
void MainWindow::slot_hasError(int code)
|
||||
{
|
||||
if(code == 100)
|
||||
|
||||
Reference in New Issue
Block a user