Крутилка при запуске Сервера

This commit is contained in:
2025-11-23 00:11:47 +03:00
parent 72d107308c
commit b6c0f6aa57
8 changed files with 36 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ const QString ServerLMSWidget::languageRUS = "ru_RU";
ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ServerLMSWidget),
waitAnimationWidget(nullptr),
server(nullptr),
updateThread(nullptr),
loggerThread(nullptr),
@@ -42,6 +43,13 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
updateMyStyleSheet();
setLanguageInterfase();
waitAnimationWidget = new WaitAnimationWidget;
QMovie *movie = new QMovie(":/resources/icons/762.gif");
waitAnimationWidget->setParent(this);
waitAnimationWidget->initialize(movie,this);
waitAnimationWidget->showWithPlay();
}
ServerLMSWidget::~ServerLMSWidget()
@@ -72,6 +80,9 @@ ServerLMSWidget::~ServerLMSWidget()
delete providerDBLMS;
}
waitAnimationWidget->hideWithStop();
delete waitAnimationWidget;
delete ui;
}
@@ -86,6 +97,12 @@ void ServerLMSWidget::changeEvent(QEvent *event)
}
}
void ServerLMSWidget::resizeEvent(QResizeEvent *event)
{
QSize size = event->size();
waitAnimationWidget->resize(size);
}
void ServerLMSWidget::slot_UpdateListClients()
{
//Очищаем список
@@ -131,6 +148,8 @@ void ServerLMSWidget::start()
if(hasError() == 100)
return;
tryConnectionToDB();
waitAnimationWidget->hideWithStop();
}
void ServerLMSWidget::slot_BlockAutorization(bool block)