svn path=/trunk/KDE/kdelibs/; revision=1034731
This commit is contained in:
Marco Martin 2009-10-13 10:47:41 +00:00
parent e6661712a8
commit b3c08d7c3f

View File

@ -35,22 +35,23 @@ class KineticScrollingPrivate;
class KineticScrolling: public QObject class KineticScrolling: public QObject
{ {
public: Q_OBJECT
KineticScrolling(); public:
~KineticScrolling(); KineticScrolling();
void mouseMoveEvent(QGraphicsSceneMouseEvent *event); ~KineticScrolling();
void mousePressEvent(QGraphicsSceneMouseEvent *event); void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); void mousePressEvent(QGraphicsSceneMouseEvent *event);
void wheelReleaseEvent(QGraphicsSceneWheelEvent *event); void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void setWidget(QGraphicsWidget *parent); void wheelReleaseEvent(QGraphicsSceneWheelEvent *event);
private: void setWidget(QGraphicsWidget *parent);
KineticScrollingPrivate *d; private:
void timerEvent(QTimerEvent *event); KineticScrollingPrivate *d;
void bounceTimer(); void timerEvent(QTimerEvent *event);
void duration(); void bounceTimer();
QPointF kinMovement(); void duration();
void startAnimationTimer(int interval); QPointF kinMovement();
void doneOvershoot(void); void startAnimationTimer(int interval);
void doneOvershoot(void);
public Q_SLOTS: public Q_SLOTS:
void setKineticScrollValue(QPointF value); void setKineticScrollValue(QPointF value);