mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: change initialize logic
*complete without change animation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user