summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2011-01-08 15:24:43 +0100
committerFelix Rohrbach <fxrh@gmx.de>2011-01-08 15:24:43 +0100
commite94a5a3b39be5d16ca0bf395bed32e38254bd2a1 (patch)
tree999ee2c7b3ee117d53853821d6520bb07bf3b628 /src
parentPut ioslaves on hold. (diff)
downloadrekonq-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
Diffstat (limited to 'src')
-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;