#ifndef ELESCROLL_H #define ELESCROLL_H #include "gutil/qjson.h" #include class EleScroll : public QWidget { Q_OBJECT public: explicit EleScroll(QWidget *, QString, const JValue &, int, int); explicit EleScroll(QWidget *, QString, char effect = 0, double effDur = 0.0); int w = 0, h = 0; QPixmap img; char effect = 0; int interval = 0, freshCnt = 0, cur = 0, end = 0, step = 1; bool noUpdate = false; void doFrame(); protected: void paintEvent(QPaintEvent *) override; }; #endif // ELESCROLL_H