Blame view

app/gui/oven_control/clock.h 388 Bytes
8c2952457   김태훈   응용 프로그램 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  #ifndef CLOCK_H
  #define CLOCK_H
  
  #include <QWidget>
  #include <QTime>
  #include <QImage>
  
  class Clock : public QWidget
  {
      Q_OBJECT
  public:
      explicit Clock(QWidget *parent = 0);
  
  signals:
  
  public slots:
  
  protected:
      void paintEvent(QPaintEvent *event);
  
  private slots:
      void checkUpdate();
  
  private:
      bool ticking;
      QTime last;
      QImage background;
  };
  
  #endif // CLOCK_H