From 9a3382ee85d56f76206656a75f0bc8828c1f6c0e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 3 May 2014 15:23:07 +0200 Subject: [PATCH] [SideBars] Don't override cursor on scrollbars in History/Bookmarks sidebars --- src/lib/bookmarks/bookmarkstreeview.cpp | 2 +- src/lib/history/historytreeview.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/bookmarks/bookmarkstreeview.cpp b/src/lib/bookmarks/bookmarkstreeview.cpp index 0f6b461be..92473fbe5 100644 --- a/src/lib/bookmarks/bookmarkstreeview.cpp +++ b/src/lib/bookmarks/bookmarkstreeview.cpp @@ -189,7 +189,7 @@ void BookmarksTreeView::mouseMoveEvent(QMouseEvent* event) cursor = Qt::PointingHandCursor; } } - setCursor(cursor); + viewport()->setCursor(cursor); } } diff --git a/src/lib/history/historytreeview.cpp b/src/lib/history/historytreeview.cpp index f01f82736..b1c381f74 100644 --- a/src/lib/history/historytreeview.cpp +++ b/src/lib/history/historytreeview.cpp @@ -149,7 +149,7 @@ void HistoryTreeView::mouseMoveEvent(QMouseEvent* event) cursor = Qt::PointingHandCursor; } } - setCursor(cursor); + viewport()->setCursor(cursor); } }