Commit a9841cd3cf4c1b3893787b8525d6675155c66ad0

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

밝기 조절 설정 중에도 화면 밝기 확인 가능하도록 수정

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
app/gui/oven_control/configbacklightdlg.cpp
... ... @@ -2,6 +2,8 @@
2 2 #include "ui_configbacklightdlg.h"
3 3 #include "config.h"
4 4  
  5 +#include "backlight.h"
  6 +
5 7 using namespace Define;
6 8  
7 9 #define MAX_LIGHT 7
... ... @@ -41,6 +43,10 @@ void ConfigBackLightDlg::on_ctrBtnOk_clicked()
41 43  
42 44 void ConfigBackLightDlg::on_ctrBtnCancel_clicked()
43 45 {
  46 + Config* cfg = Config::getInstance();
  47 + config_item item;
  48 + item = cfg->getConfigValue(config_backlight);
  49 + Backlight::set(item.d32);
44 50 reject();
45 51 }
46 52  
... ... @@ -54,6 +60,8 @@ void ConfigBackLightDlg::on_ctrBtnPlus_clicked()
54 60 //minus button;
55 61 m_nSelBackLight = m_nSelBackLight>0?m_nSelBackLight-1:0;
56 62 ui->ctrProgressLight->setCurrentProgress(m_nSelBackLight);
  63 +
  64 + Backlight::set(m_nSelBackLight);
57 65 }
58 66  
59 67  
... ... @@ -62,4 +70,6 @@ void ConfigBackLightDlg::on_ctrBtnMinus_clicked()
62 70 {
63 71 m_nSelBackLight = m_nSelBackLight<7?m_nSelBackLight+1:7;
64 72 ui->ctrProgressLight->setCurrentProgress(m_nSelBackLight);
  73 +
  74 + Backlight::set(m_nSelBackLight);
65 75 }
... ...