去掉loading图标

This commit is contained in:
zhaominyong 2022-02-28 13:48:09 +08:00
parent 89194d2daf
commit 96aa418c32
5 changed files with 15 additions and 5 deletions

View File

@ -835,7 +835,8 @@ void DataBackup::initThirdWidget()
// 开始检测
connect(this, &DataBackup::startCheckEnv, this, [=]() {
this->m_DataBackupState = DataBackupState::CHECKING;
loadingGif->setVisible(true);
// 应设计要求不再展示loading图。虽然个人觉得没动态会造成界面有时长时间静止跟卡死一样不合理
loadingGif->setVisible(false);
movie->start();
resultLogo->setVisible(false);
// 环境检测中,请等待
@ -1246,6 +1247,7 @@ void DataBackup::initFifthWidget()
QMovie *movie = new QMovie(":/images/loading.gif", QByteArray(), centerFont);
loadingGif->setMovie(movie);
loadingGif->setFixedSize(20,20);
loadingGif->setVisible(false);
// 进度条
RingsProgressbar *progressBar = new RingsProgressbar(centerFont);
progressBar->setFixedSize(100, 100);

View File

@ -383,7 +383,8 @@ void DataRestore::initSecondWidget()
// 开始检测
connect(this, &DataRestore::startCheckEnv, this, [=]() {
this->m_dataRestoreState = DataRestoreState::CHECKING;
loadingGif->setVisible(true);
// 应设计要求不再展示loading图。虽然个人觉得没动态会造成界面有时长时间静止跟卡死一样不合理
loadingGif->setVisible(false);
movie->start();
resultLogo->setVisible(false);
// 环境检测中,请等待
@ -597,6 +598,7 @@ void DataRestore::initThirdWidget()
// 环境检测等待动画
QMovie *movie = new QMovie(":/images/loading.gif", QByteArray(), centerFont);
loadingGif->setMovie(movie);
loadingGif->setVisible(false);
// 进度条
RingsProgressbar *progressBar = new RingsProgressbar(centerFont);
progressBar->setFixedSize(100, 100);

View File

@ -421,7 +421,8 @@ void GhostImage::initThirdWidget()
// 开始检测
connect(this, &GhostImage::startCheckEnv, this, [=]() {
this->m_ghostImageState = GhostImageState::CHECKING;
loadingGif->setVisible(true);
// 应设计要求不再展示loading图。虽然个人觉得没动态会造成界面有时长时间静止跟卡死一样不合理
loadingGif->setVisible(false);
movie->start();
resultLogo->setVisible(false);
// 环境检测中,请等待
@ -691,6 +692,7 @@ void GhostImage::initForthWidget()
QMovie *movie = new QMovie(":/images/loading.gif", QByteArray(), centerFont);
loadingGif->setMovie(movie);
loadingGif->setFixedSize(20,20);
loadingGif->setVisible(false);
// 进度条
RingsProgressbar *progressBar = new RingsProgressbar(centerFont);
progressBar->setFixedSize(100, 100);

View File

@ -419,7 +419,8 @@ void SystemBackup::initThirdWidget()
// 开始检测
connect(this, &SystemBackup::startCheckEnv, this, [=]() {
this->m_systemBackupState = SystemBackupState::CHECKING;
loadingGif->setVisible(true);
// 应设计要求不再展示loading图。虽然个人觉得没动态会造成界面有时长时间静止跟卡死一样不合理
loadingGif->setVisible(false);
movie->start();
resultLogo->setVisible(false);
// 环境检测中,请等待
@ -834,6 +835,7 @@ void SystemBackup::initFifthWidget()
QMovie *movie = new QMovie(":/images/loading.gif", QByteArray(), centerFont);
loadingGif->setMovie(movie);
loadingGif->setFixedSize(20,20);
loadingGif->setVisible(false);
// 进度条
RingsProgressbar *progressBar = new RingsProgressbar(centerFont);
progressBar->setFixedSize(100, 100);

View File

@ -401,7 +401,8 @@ void SystemRestore::initSecondWidget()
// 开始检测
connect(this, &SystemRestore::startCheckEnv, this, [=]() {
this->m_systemRestoreState = SystemRestoreState::CHECKING;
loadingGif->setVisible(true);
// 应设计要求不再展示loading图。虽然个人觉得没动态会造成界面有时长时间静止跟卡死一样不合理
loadingGif->setVisible(false);
movie->start();
resultLogo->setVisible(false);
// 环境检测中,请等待
@ -623,6 +624,7 @@ void SystemRestore::initThirdWidget()
// 环境检测等待动画
QMovie *movie = new QMovie(":/images/loading.gif", QByteArray(), centerFont);
loadingGif->setMovie(movie);
loadingGif->setVisible(false);
// 进度条
RingsProgressbar *progressBar = new RingsProgressbar(centerFont);
progressBar->setFixedSize(100, 100);