From e94a5a3b39be5d16ca0bf395bed32e38254bd2a1 Mon Sep 17 00:00:00 2001 From: Felix Rohrbach Date: Sat, 8 Jan 2011 15:24:43 +0100 Subject: Multi-scroll cursors doesn't appear when the page does not have scroll bars, anymore. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Furkan Üzümcü RB: 100314 --- src/webview.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.1