mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Отложенная инициализация в Сервере (старт виджета)
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
#include <QTimer>
|
||||
#include <QThread>
|
||||
#include "mainwindow.h"
|
||||
#include "./ui_mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
@@ -66,7 +67,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
slot_Tray_ShowMessage(tr("Starting the server..."));
|
||||
|
||||
QTimer::singleShot(1000,this,&MainWindow::slot_Connect);
|
||||
QTimer::singleShot(1000,this,&MainWindow::slot_LazyInitialization);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
@@ -141,9 +142,6 @@ void MainWindow::slot_TrayMessageClicked()
|
||||
|
||||
void MainWindow::slot_TrayMenu_ShowWindow()
|
||||
{
|
||||
//TODO под вопросом?
|
||||
if(!serverLMSWidget->isEnabledTo(this))
|
||||
return;
|
||||
this->show();
|
||||
action_ShowWindow->setEnabled(false);
|
||||
action_HideWindow->setEnabled(true);
|
||||
@@ -175,7 +173,7 @@ void MainWindow::slot_Tray_ShowMessage(QString textMsg, QSystemTrayIcon::Message
|
||||
icon, 100);
|
||||
}
|
||||
|
||||
void MainWindow::slot_Connect()
|
||||
void MainWindow::slot_LazyInitialization()
|
||||
{
|
||||
serverLMSWidget->start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user