#ifndef TABLEVALUE_H #define TABLEVALUE_H #include <QObject> #include <QWidget> #include <QLabel> #include <QTableWidgetItem> #include <QTimer> #include <QTime> class TableValue : public QLabel { Q_OBJECT public: explicit TableValue(); void setText(const QString &text); private: QTime time; QTimer timer; QTimer animationTimer; private slots: void updateColor(); }; #endif // TABLEVALUE_H