Blame view

app/gui/oven_control/demoicon.cpp 434 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 "demoicon.h"
  
  #include "config.h"
  
  DemoIcon::DemoIcon(QWidget *parent) : QLabel(parent)
  {
      setPixmap(QPixmap(":/images/symbol/demo.png"));
  
      connect(&timer, SIGNAL(timeout()), SLOT(check()));
      timer.start(1000);
  
      check();
  }
  
  void DemoIcon::check()
  {
      Define::config_item item = Config::getInstance()->getConfigValue(Define::config_demo_mode);
      if (item.d32 == 0)
          hide();
      else
          show();
  }