diff options
Diffstat (limited to 'src')
-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 |