Commit 5f1ffa79cd13b3f54f7fe691889e11d308f2aa70

Authored by 김태훈
1 parent 59f57044e9
Exists in master and in 2 other branches fhd, fhd-demo

세척 모드 문제 수정

- 스팀 통 세척 중 애니메이션 시작 않는 문제 수정
- 스팀 통 세척 후 화면을 벗어날 수 없는 문제 수정
- 세척 모드가 강제 종료될 경우 세척 중단 명령 전달하도록 수정
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
app/gui/oven_control/washwindow.cpp
@@ -73,6 +73,8 @@ WashWindow::WashWindow(QWidget *parent) : @@ -73,6 +73,8 @@ WashWindow::WashWindow(QWidget *parent) :
73 ui->animation->load(":/images/animation/wash_02.png"); 73 ui->animation->load(":/images/animation/wash_02.png");
74 ui->animation->load(":/images/animation/wash_03.png"); 74 ui->animation->load(":/images/animation/wash_03.png");
75 ui->animation->load(":/images/animation/wash_04.png"); 75 ui->animation->load(":/images/animation/wash_04.png");
  76 + ui->animation->show();
  77 + ui->animation->start(300);
76 ui->washStepGauge->setValue(0); 78 ui->washStepGauge->setValue(0);
77 ui->titleLabel->setText(tr("제품 스팀통을 세척 중입니다")); 79 ui->titleLabel->setText(tr("제품 스팀통을 세척 중입니다"));
78 ui->descLabel->setText(tr("완료될 때까지 문을 열지 마세요\n제품의 스팀통 자동 세척 기능을 실행 중입니다")); 80 ui->descLabel->setText(tr("완료될 때까지 문을 열지 마세요\n제품의 스팀통 자동 세척 기능을 실행 중입니다"));
@@ -85,6 +87,7 @@ WashWindow::WashWindow(QWidget *parent) : @@ -85,6 +87,7 @@ WashWindow::WashWindow(QWidget *parent) :
85 87
86 WashWindow::~WashWindow() 88 WashWindow::~WashWindow()
87 { 89 {
  90 + udp->turnOff(TG_CLEANING);
88 delete ui; 91 delete ui;
89 } 92 }
90 93
@@ -337,6 +340,8 @@ void WashWindow::onChanged() @@ -337,6 +340,8 @@ void WashWindow::onChanged()
337 } 340 }
338 else 341 else
339 { 342 {
  343 + state = Idle;
  344 + SoundPlayer::playStop();
340 OvenStatistics::getInstance()->setWashState(false); 345 OvenStatistics::getInstance()->setWashState(false);
341 346
342 ui->titleLabel->setText(tr("세척이 종료되었습니다")); 347 ui->titleLabel->setText(tr("세척이 종료되었습니다"));