summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-20 21:22:48 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-22 10:53:59 +0100
commit243466641c57903de3e34edb114ebe9fc8720e20 (patch)
tree62ec9412877e82c700b1b83a651d17bcf735cb90 /src/webview.cpp
parentadjust to INSTALLed permissions (diff)
downloadrekonq-243466641c57903de3e34edb114ebe9fc8720e20.tar.xz
m_mousePos--
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index fffa5679..e0e403c0 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -65,7 +65,6 @@
WebView::WebView(QWidget* parent)
: KWebView(parent, false)
- , m_mousePos(QPoint(0, 0))
, m_autoScrollTimer(new QTimer(this))
, m_vScrollSpeed(0)
, m_hScrollSpeed(0)
@@ -454,11 +453,11 @@ void WebView::mousePressEvent(QMouseEvent *event)
void WebView::mouseMoveEvent(QMouseEvent *event)
{
- m_mousePos = event->pos();
+ QPoint mousePos = event->pos();
if (m_isViewAutoScrolling)
{
- QPoint r = m_mousePos - m_clickPos;
+ QPoint r = mousePos - m_clickPos;
m_hScrollSpeed = r.x() / 2; // you are too fast..
m_vScrollSpeed = r.y() / 2;
if (!m_autoScrollTimer->isActive())