diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webview.cpp | 9 | ||||
-rw-r--r-- | src/webview.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index b41f1bd3..18c7a730 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -478,6 +478,15 @@ void WebView::mouseMoveEvent(QMouseEvent *event) } +void WebView::enterEvent(QEvent *event) +{ + if(m_isAutoScrollEnabled) + setCursor(KIcon("transform-move").pixmap(32)); + + KWebView::enterEvent(event); +} + + void WebView::dropEvent(QDropEvent *event) { if (event->mimeData()->hasFormat("application/rekonq-bookmark")) diff --git a/src/webview.h b/src/webview.h index 669705fa..3a37b082 100644 --- a/src/webview.h +++ b/src/webview.h @@ -58,6 +58,7 @@ protected: void contextMenuEvent(QContextMenuEvent *event); void mousePressEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event); + void enterEvent(QEvent *event); void keyPressEvent(QKeyEvent *event); void wheelEvent(QWheelEvent *event); void dropEvent(QDropEvent *event); |