The API changed for rotations, requiring another argument for positions.
[contacts_plasmoid.git] / kineticview.h
blobb4deec65d060cd3eca2392734eadf7b2e4c23b9e
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
11 public:
12 KineticView(QGraphicsWidget *parent = 0);
13 ~KineticView();
15 void insertItem( QGraphicsWidget *item);
16 QGraphicsItem * itemAt( int i );
18 private:
19 void scrollingAnimation(unsigned int duration, qreal startValue, qreal endValue);
21 private:
22 QPropertyAnimation *scroll;
23 QList<QGraphicsWidget *> itemList;
25 protected:
26 virtual bool event ( QEvent * event );
29 #endif