feat: add versionChanger for GUI

This commit is contained in:
semenov
2025-01-21 11:33:51 +03:00
parent 97fee998bb
commit 3e95be4447
29 changed files with 1259 additions and 9 deletions

View File

@@ -0,0 +1,35 @@
#include "waitanimationwidget.h"
#include "ui_waitanimationwidget.h"
WaitAnimationWidget::WaitAnimationWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::WaitAnimationWidget),
loadingMovie(nullptr)
{
ui->setupUi(this);
}
void WaitAnimationWidget::initialize(QMovie *movie,QWidget *parent)
{
ui->MovieLabel->setMovie(movie);
loadingMovie = movie;
setFixedSize(parent->width(),parent->height());
hide();
}
void WaitAnimationWidget::showWithPlay()
{
show();
loadingMovie->start();
}
void WaitAnimationWidget::hideWithStop()
{
hide();
loadingMovie->stop();
}
WaitAnimationWidget::~WaitAnimationWidget()
{
delete ui;
}