qt/LedOK/player/elescroll.h
2022-01-20 10:08:17 +08:00

22 lines
430 B
C++

#ifndef ELESCROLL_H
#define ELESCROLL_H
#include <QWidget>
class EleScroll : public QWidget {
Q_OBJECT
public:
explicit EleScroll(QString, QJsonObject, QWidget *parent = nullptr);
QPixmap img;
QChar effect = 0;
long period = 0;
int timerId = 0, cur = 0, end = 0, curAdd = 1;
protected:
void paintEvent(QPaintEvent *) override;
void timerEvent(QTimerEvent *) override;
};
#endif // ELESCROLL_H