qt/LedOK/player/elescroll.h

21 lines
487 B
C
Raw Normal View History

2022-01-20 10:08:17 +08:00
#ifndef ELESCROLL_H
#define ELESCROLL_H
#include <QWidget>
class EleScroll : public QWidget {
Q_OBJECT
public:
2022-08-25 18:37:24 +08:00
explicit EleScroll(QWidget *, QString, QJsonObject);
explicit EleScroll(QWidget *, QString, char effect = 0, double effDur = 0.0);
2022-01-20 10:08:17 +08:00
QPixmap img;
2022-08-25 18:37:24 +08:00
char effect = 0;
int interval = 0, timerId = 0, cur = 0, end = 0, curAdd = 1;
2022-01-20 10:08:17 +08:00
protected:
void paintEvent(QPaintEvent *) override;
void timerEvent(QTimerEvent *) override;
};
#endif // ELESCROLL_H