Commit ae109587605fe8791c54527c80ac7a6bc12e8d1e

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

중심 온도 설정 창에서 중심 온도 설정 슬라이더의 라벨이 제대로 갱신되지 않는 문제 수정

Showing 1 changed file with 6 additions and 5 deletions   Show diff stats
app/gui/oven_control/manualcookwindow.cpp
... ... @@ -36,6 +36,7 @@ ManualCookWindow::ManualCookWindow(QWidget *parent, Oven *oven, UdpHandler *udp)
36 36 connect(ui->timeSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels()));
37 37 connect(ui->interTempSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels()));
38 38 connect(ui->innerInterTempSlider, SIGNAL(sliderMoved(int)), this, SLOT(updateLabels()));
  39 + connect(ui->innerInterTempSlider, SIGNAL(valueChanged(int)), this, SLOT(updateLabels()));
39 40  
40 41 QTimer *cookingTimerCheckTimer = new QTimer(this);
41 42 cookingTimerCheckTimer->setInterval(100);
... ... @@ -176,11 +177,11 @@ void ManualCookWindow::updateLabels()
176 177 else
177 178 ui->interTempLabel->setText("℃");
178 179  
179   - int innerInterTemp;
180   - if (ui->innerInterTempSlider->isSliderDown())
181   - innerInterTemp = ui->innerInterTempSlider->sliderPosition();
182   - else
183   - innerInterTemp = oven->interTemp();
  180 + int innerInterTemp = ui->innerInterTempSlider->sliderPosition();
  181 +// if (ui->innerInterTempSlider->isSliderDown())
  182 +// innerInterTemp = ui->innerInterTempSlider->sliderPosition();
  183 +// else
  184 +// innerInterTemp = oven->interTemp();
184 185  
185 186 ui->innerInterTempLabel->setText(buf.sprintf("%d℃", innerInterTemp));
186 187  
... ...