ref: change initialize logic

*complete without change animation
This commit is contained in:
semenov
2025-08-14 15:40:46 +03:00
parent 05e09792d7
commit 0c805708ef
38 changed files with 1047 additions and 1008 deletions

View File

@@ -9,10 +9,16 @@ WaitAnimationWidget::WaitAnimationWidget(QWidget *parent) :
ui->setupUi(this);
}
void WaitAnimationWidget::setMovie(QMovie *movie)
void WaitAnimationWidget::initialize(ResourceManager *resourceManager)
{
ui->MovieLabel->setMovie(movie);
loadingMovie = movie;
loadingMovie = resourceManager->getMovie();
ui->MovieLabel->setMovie(loadingMovie);
}
void WaitAnimationWidget::slotActivateLoadingAnimation(bool flag)
{
if (flag)showWithPlay();
else hideWithStop();
}
void WaitAnimationWidget::showWithPlay()
@@ -31,3 +37,5 @@ WaitAnimationWidget::~WaitAnimationWidget()
{
delete ui;
}