diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-20 21:22:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-22 10:53:59 +0100 |
commit | 243466641c57903de3e34edb114ebe9fc8720e20 (patch) | |
tree | 62ec9412877e82c700b1b83a651d17bcf735cb90 | |
parent | adjust to INSTALLed permissions (diff) | |
download | rekonq-243466641c57903de3e34edb114ebe9fc8720e20.tar.xz |
m_mousePos--
-rw-r--r-- | src/webview.cpp | 5 | ||||
-rw-r--r-- | src/webview.h | 6 |
2 files changed, 2 insertions, 9 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()) diff --git a/src/webview.h b/src/webview.h index b0254aa4..08e5e522 100644 --- a/src/webview.h +++ b/src/webview.h @@ -63,11 +63,6 @@ public: WebPage *page(); - inline QPoint mousePos() - { - return m_mousePos; - } - protected: void contextMenuEvent(QContextMenuEvent *event); @@ -125,7 +120,6 @@ private: void makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element); private: - QPoint m_mousePos; QPoint m_clickPos; // Auto Scroll |