diff options
author | Felix Rohrbach <fxrh@gmx.de> | 2011-01-08 15:24:43 +0100 |
---|---|---|
committer | Felix Rohrbach <fxrh@gmx.de> | 2011-01-08 15:24:43 +0100 |
commit | e94a5a3b39be5d16ca0bf395bed32e38254bd2a1 (patch) | |
tree | 999ee2c7b3ee117d53853821d6520bb07bf3b628 | |
parent | Put ioslaves on hold. (diff) | |
download | rekonq-e94a5a3b39be5d16ca0bf395bed32e38254bd2a1.tar.xz |
Multi-scroll cursors doesn't appear when the page does not have scroll bars, anymore.
Patch by Furkan Üzümcü
RB: 100314
-rw-r--r-- | src/webview.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 0c06a4f8..49fa1032 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -412,9 +412,13 @@ void WebView::mousePressEvent(QMouseEvent *event) && !page()->currentFrame()->scrollBarGeometry(Qt::Horizontal).contains(event->pos()) && !page()->currentFrame()->scrollBarGeometry(Qt::Vertical).contains(event->pos())) { - setCursor(KIcon("transform-move").pixmap(32)); - m_clickPos = event->pos(); - m_isAutoScrollEnabled = true; + if (!page()->currentFrame()->scrollBarGeometry(Qt::Horizontal).isNull() + || !page()->currentFrame()->scrollBarGeometry(Qt::Vertical).isNull()) + { + setCursor(KIcon("transform-move").pixmap(32)); + m_clickPos = event->pos(); + m_isAutoScrollEnabled = true; + } } break; |