The mouse cursor should change to cross-hair or normal when hovering over certain areas in Okular. Reproducible: Always Steps to Reproduce: 1. open any pdf in Okular. Stay out of the window when it approaches - shall mean: put your mouse cursor at the top or bottom of the screen, so that it is NOT inside the window of Okular when the window appears. The mouse cursor is the normal arrow now. 2. Enter the window, the mouse cursor will stay an arrow, even when hovering over the text, and the selection mode is "selection" (Ctrl+3). 3. Now click again on the (in German) "Auswahl" toolbutton and enter the pdf canvas again. 4. The cursor now changes to the cross-hair. 5. move the cursor to the scrollbar on the right of the window. Actual Results: It stays a cross-hair! This works correctly (cursor being an arrow) on the left side (Preview). Expected Results: Cursor should change to arrow when hovering over a scrollbar What seems strange too is that after opening a pdf, the mouse hangs after Okular start for approx. 1s, until the Okular window appears. I don't see this with any other programs. Maybe it is another bug, maybe it has to do something with that here. Seen under Kubuntu 14.04.
*** Bug 311825 has been marked as a duplicate of this bug. ***
Confirmed with current git master on Debian testing.
Git commit 574fad92c8bed04e8b0c0fcbb84a9ecbd8cf685b by Albert Astals Cid, on behalf of Tobias Deiminger. Committed on 21/05/2017 at 21:37. Pushed by aacid into branch 'Applications/17.04'. Initialize cursor in PageView scrollbars with ArrowCursor REVIEW: 130131 M +2 -0 ui/pageview.cpp https://commits.kde.org/okular/574fad92c8bed04e8b0c0fcbb84a9ecbd8cf685b
Missed the review. Would it be more correct to set the cursor on the viewport() instead of the whole scrollview? Then we do not need to fixup the scrollbars afterwards.
It's not set on the whole scrollview, is it?
PageView inherits from QAbstractScrollArea, so I am afraid the setCursor() calls there affect the complete scrollarea, not just the viewport.
(In reply to Christoph Feck from comment #6) > PageView inherits from QAbstractScrollArea, so I am afraid the setCursor() > calls there affect the complete scrollarea, not just the viewport. Ah you were commenting on the original code and not on the bugfix. No idea, you can propose a fix, get someone to review and test it and then commit it if you think it's better :)