summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-06-30 18:36:49 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-08 21:08:45 +0200
commitb94c146ef02f7e966251bb78cd124367c73e7d1d (patch)
tree669a6317a430dc6ae3f33cca1bc14109361ef88a /src/webview.h
parentMerge branch 'm155' (diff)
downloadrekonq-b94c146ef02f7e966251bb78cd124367c73e7d1d.tar.xz
Implement KHTML smooth scrolling for rekonq
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h17
1 files changed, 17 insertions, 0 deletions
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 <QTimeLine>
+
// KDE Includes
#include <KWebView>
@@ -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