summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-11 00:01:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-11 00:01:24 +0200
commite9a026e5c6551b1036dec42e622c6996fc668044 (patch)
tree18513adf4c6a1a042287699d9fb89d5bf66ee2d3 /src/webview.h
parentMerge commit 'refs/merge-requests/159' of git://gitorious.org/rekonq/mainline... (diff)
parentFix the factor (diff)
downloadrekonq-e9a026e5c6551b1036dec42e622c6996fc668044.tar.xz
Merge commit 'refs/merge-requests/160' of git://gitorious.org/rekonq/mainline into m160
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/webview.h b/src/webview.h
index 1fd40f92..b9c04e47 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -32,6 +32,9 @@
// Rekonq Includes
#include "rekonq_defines.h"
+//Qt Includes
+#include <QTime>
+
// KDE Includes
#include <KWebView>
@@ -71,6 +74,11 @@ private slots:
void inspect();
void scrollFrameChanged();
+ void scrollTick();
+
+ void setupSmoothScrolling(int posY);
+
+ void stopScrolling();
signals:
void loadUrl(const KUrl &, const Rekonq::OpenType &);
@@ -80,11 +88,20 @@ private:
QPoint _mousePos;
QPoint _clickPos;
- QTimer *_scrollTimer;
+ // Auto Scroll
+ QTimer *_autoScrollTimer;
int _VScrollSpeed;
int _HScrollSpeed;
bool _canEnableAutoScroll;
bool _isAutoScrollEnabled;
+
+ // Smooth Scroll
+ QTimer *_smoothScrollTimer;
+ QTime _smoothScrollTime;
+ bool _scrollBottom;
+ bool _smoothScrolling;
+ int _dy;
+ int _smoothScrollSteps;
};
#endif