2022-08-25 18:37:24 +08:00
|
|
|
#ifndef EWEB_H
|
|
|
|
#define EWEB_H
|
2023-05-08 09:59:15 +08:00
|
|
|
|
2022-08-25 18:37:24 +08:00
|
|
|
#include "ebase.h"
|
|
|
|
|
|
|
|
class EWeb : public EBase {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static const QImage &holder() {
|
2023-04-18 14:14:46 +08:00
|
|
|
static const QImage holder = QImage(":/res/program/Web.png");
|
2022-08-25 18:37:24 +08:00
|
|
|
return holder;
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit EWeb(EBase *multiWin = nullptr);
|
|
|
|
explicit EWeb(const QJsonObject &json, EBase *multiWin = nullptr);
|
|
|
|
|
|
|
|
int type() const override {return EBase::Web;}
|
|
|
|
void paint(QPainter*, const QStyleOptionGraphicsItem *, QWidget *) override;
|
|
|
|
QWidget* attrWgt() override;
|
|
|
|
bool save(const QString &) override {return true;};
|
|
|
|
QJsonObject attrJson() const override;
|
|
|
|
|
|
|
|
QString url;
|
|
|
|
int duration = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EWEB_H
|