Blame view

app/gui/oven_control/halfenergyicon.cpp 471 Bytes
de045ccea   김태훈   시연 모드 아이콘 추가, 하프 ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #include "halfenergyicon.h"
  
  #include "config.h"
  
  HalfEnergyIcon::HalfEnergyIcon(QWidget *parent) : QLabel(parent)
  {
      setPixmap(QPixmap(":/images/symbol/half_energy.png"));
  
      connect(&timer, SIGNAL(timeout()), SLOT(check()));
      timer.start(1000);
  
      check();
  }
  
  void HalfEnergyIcon::check()
  {
      Define::config_item item = Config::getInstance()->getConfigValue(Define::config_set_half_energy);
      if (item.d32 == 0)
          hide();
      else
          show();
  }