22 lines
430 B
C
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
|