Blame view

app/gui/packet/tablevalue.h 664 Bytes
81bee1ec4   김태훈   원격 패킷 출력 프로그램 추가
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
31
32
33
  #ifndef TABLEVALUE_H
  #define TABLEVALUE_H
  
  #include <QObject>
  #include <QWidget>
  #include <QLabel>
  #include <QTableWidgetItem>
  #include <QTimer>
  
  class TableValue : public QLabel
  {
      Q_OBJECT
  
  public:
      explicit TableValue()
      {
          timer.setSingleShot(true);
          connect(&animationTimer, SIGNAL(timeout()), this, SLOT(updateColor()));
          connect(&timer, SIGNAL(timeout()), &animationTimer, SLOT(stop()));
          connect(&timer, SIGNAL(timeout()), this, SLOT(updateColor()));
      }
  
      void setText(const QString &text);
  
  private:
      QTimer timer;
      QTimer animationTimer;
  
  private slots:
      void updateColor();
  };
  
  #endif // TABLEVALUE_H