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, QGraphicsItem* parent=NULL);
39 virtual ~ProcessingAnimationItem();
41 QBrush brush()
const {
44 void setBrush(
const QBrush& brush) {
49 void animationTimeout();
50 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
53 #endif // PROCESSINGANIMATIONITEM_H