21 #ifndef PROCESSINGANIMATIONITEM_H 22 #define PROCESSINGANIMATIONITEM_H 24 #include <QGraphicsPixmapItem> 29 class ProcessingAnimationItem :
public QObject,
public QGraphicsPixmapItem {
32 QVector<QPixmap> _pixmaps;
33 QTimer _animationTimer;
34 unsigned int _currentFrame;
38 explicit ProcessingAnimationItem(
const QPixmap &pixmap,
const QSize &size,
39 QGraphicsItem *parent =
nullptr);
40 ~ProcessingAnimationItem()
override;
42 QBrush brush()
const {
45 void setBrush(
const QBrush &brush) {
50 void animationTimeout();
51 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
54 #endif // PROCESSINGANIMATIONITEM_H