| 123456789101112131415161718192021222324252627 |
- #ifndef BMPANIMATIONWIDGET_H
- #define BMPANIMATIONWIDGET_H
- #include <QWidget>
- #include <QScopedPointer>
- #include <QImageReader>
- class BmpAnimationWidgetPrivate;
- class BmpAnimationWidget : public QWidget
- {
- Q_OBJECT
- Q_DISABLE_COPY(BmpAnimationWidget)
- public:
- explicit BmpAnimationWidget(QWidget *parent = NULL);
- ~BmpAnimationWidget();
- void setBackgroundBmpPath(const QString &path);
- void setFullMode();
- void setEventIgnore();
- protected:
- void styleChange();
- void paintEvent(QPaintEvent* event);
- bool event(QEvent *event);
- private:
- QScopedPointer<BmpAnimationWidgetPrivate> m_Private;
- };
- #endif // BMPANIMATIONWIDGET_H
|