summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-01-09 10:23:54 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-01-09 10:23:54 +0100
commita6658db5ed42c3c261373370fb918063e5135bfc (patch)
tree5535860aa8cd9f9de5585dfb4ba3b4fb9f02cb5b /src/webview.cpp
parentAutomatically expand grouped search in panels (diff)
parentTab bar preview optimization, use event->pos() to get the position of tab ins... (diff)
downloadrekonq-a6658db5ed42c3c261373370fb918063e5135bfc.tar.xz
Merge branch 'master' of git.kde.org:rekonq
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp10
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;