improve kinetic animation
[kineticlist.git] / kineticview.h
blob78639d1a89643d14db8555aeedaf385ec93b7b3d
1 #ifndef KINETICLAYOUT_H
2 #define KINETICLAYOUT_H
4 #include <QGraphicsWidget>
5 #include <QPropertyAnimation>
6 #include <QGraphicsSceneMouseEvent>
8 #include "kineticscroll.h"
10 class KineticView : public QGraphicsWidget, KineticScrolling
12 Q_OBJECT
14 public:
15 KineticView(QGraphicsWidget *parent = 0);
16 ~KineticView();
18 void setWidget( QGraphicsWidget *item);
20 private:
21 QGraphicsWidget * mWindow;
22 QGraphicsWidget *mViewPort;
23 int mScrollVelocity;
24 protected:
25 virtual bool event ( QEvent * event );
27 public Q_SLOTS:
28 void setScrollValue( int value );
30 private:
31 void startTimer();
35 #endif