diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-01-09 10:23:54 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-01-09 10:23:54 +0100 |
commit | a6658db5ed42c3c261373370fb918063e5135bfc (patch) | |
tree | 5535860aa8cd9f9de5585dfb4ba3b4fb9f02cb5b /src/webview.cpp | |
parent | Automatically expand grouped search in panels (diff) | |
parent | Tab bar preview optimization, use event->pos() to get the position of tab ins... (diff) | |
download | rekonq-a6658db5ed42c3c261373370fb918063e5135bfc.tar.xz |
Merge branch 'master' of git.kde.org:rekonq
Diffstat (limited to 'src/webview.cpp')
-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; |