From b94c146ef02f7e966251bb78cd124367c73e7d1d Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Wed, 30 Jun 2010 18:36:49 +0200 Subject: Implement KHTML smooth scrolling for rekonq --- src/webview.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/webview.h') diff --git a/src/webview.h b/src/webview.h index a4ba676c..cc5508cb 100644 --- a/src/webview.h +++ b/src/webview.h @@ -32,6 +32,8 @@ // Rekonq Includes #include "rekonq_defines.h" +#include + // KDE Includes #include @@ -71,6 +73,11 @@ private slots: void inspect(); void scrollFrameChanged(); + void scrollTick(); + + void setupSmoothScrolling(int posY); + + void stopScrolling(); signals: void loadUrl(const KUrl &, const Rekonq::OpenType &); @@ -85,6 +92,16 @@ private: int _HScrollSpeed; bool _canEnableAutoScroll; bool _isAutoScrollEnabled; + + QTimeLine *smoothScroller; + QTimer *timer; + int nbSteps; + int nbTicks; + bool bas; + QTime *time; + bool smoothScrolling; + int dy; + int steps; }; #endif -- cgit v1.2.1