first commit
[blok] / blokitem / normalblokitem.h
1 #ifndef NORMALBLOKITEM_H
2 #define NORMALBLOKITEM_H
3 #include "blokitem.h"
4 #include <QMouseEvent>
5 #include <QTimeLine>
6 #include "physicsscene.h"
7 class NormalBlokItem : public BlokItem
8 {
9     Q_OBJECT
10 public:
11     explicit NormalBlokItem(int width=1, int height=1,QObject *parent = 0);
12
13
14 protected:
15     void mousePressEvent(QGraphicsSceneMouseEvent *event);
16 signals:
17
18 public slots:
19 void anim(int frame);
20
21 private:
22 QTimeLine *mAnimationTimeLine;
23 };
24
25 #endif // NORMALBLOKITEM_H