BmpAnimationWidget.h 661 B

123456789101112131415161718192021222324252627
  1. #ifndef BMPANIMATIONWIDGET_H
  2. #define BMPANIMATIONWIDGET_H
  3. #include <QWidget>
  4. #include <QScopedPointer>
  5. #include <QImageReader>
  6. class BmpAnimationWidgetPrivate;
  7. class BmpAnimationWidget : public QWidget
  8. {
  9. Q_OBJECT
  10. Q_DISABLE_COPY(BmpAnimationWidget)
  11. public:
  12. explicit BmpAnimationWidget(QWidget *parent = NULL);
  13. ~BmpAnimationWidget();
  14. void setBackgroundBmpPath(const QString &path);
  15. void setFullMode();
  16. void setEventIgnore();
  17. protected:
  18. void styleChange();
  19. void paintEvent(QPaintEvent* event);
  20. bool event(QEvent *event);
  21. private:
  22. QScopedPointer<BmpAnimationWidgetPrivate> m_Private;
  23. };
  24. #endif // BMPANIMATIONWIDGET_H