1 #ifndef KINETICLAYOUT_H
2 #define KINETICLAYOUT_H
4 #include <QGraphicsWidget>
5 #include <QPropertyAnimation>
6 #include <QGraphicsSceneMouseEvent>
7 #include "kineticscroll.h"
9 class KineticView
: public QGraphicsWidget
, KineticScrolling
12 KineticView(QGraphicsWidget
*parent
= 0);
15 void insertItem( QGraphicsWidget
*item
);
16 QGraphicsItem
* itemAt( int i
);
19 void scrollingAnimation(unsigned int duration
, qreal startValue
, qreal endValue
);
22 QPropertyAnimation
*scroll
;
23 QList
<QGraphicsWidget
*> itemList
;
26 virtual bool event ( QEvent
* event
);