Bug 192636 - Okular show gray area in the View in RTL mode
Summary: Okular show gray area in the View in RTL mode
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.8.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2009-05-14 08:41 UTC by Zayed Al-Saidi
Modified: 2009-06-29 22:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Big gray bar in the left of view. (151.75 KB, image/jpeg)
2009-05-14 08:44 UTC, Zayed Al-Saidi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zayed Al-Saidi 2009-05-14 08:41:13 UTC
Version:           0.8.2 (using 4.2.2 (KDE 4.2.2) "release 114", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.21-0.1-default

I always use Okular in RTL without any problem. Recently, I got a pdf file that does not render in a good way. For first time, I get a big gray bar in the view.

Step by Step:
1- grab a copy from this pdf file: http://www.hoomanb.com/cs/QuickRef/CppQuickRef.pdf
2- open it with Okular in RTL mode: okular -reverse CppQuickRef.pdf
3- see the big gray bar . (see the screenshot)
4- try to slide to the right and left. The view will be mess !!

Expected Behavior:
Okular should render that pdf file same as LTR mode.
Comment 1 Zayed Al-Saidi 2009-05-14 08:44:36 UTC
Created attachment 33652 [details]
Big gray bar in the left of view.
Comment 2 Albert Astals Cid 2009-05-17 22:05:42 UTC
Can't reproduce
Comment 3 Pino Toscano 2009-05-24 21:36:07 UTC
Confirm (not the grey bar, but similar artifacts).
Not sure whether it is an Okular-specific issue, or a Qt one.
Comment 4 Pino Toscano 2009-06-29 22:55:52 UTC
SVN commit 989285 by pino:

Convert the PageView from a QScrollArea + inner QWidget to a QAbstractScrollArea.
- added few utility functions to compensate the miss of a "central scrolled widget", as now we just fully handle (events & painting) the viewport of the scroll area
- manually scroll the overlay widgets (form widgets and video widgets) when the "area" is scrolled
All the page view functionalities should be working as usual, hopefully I should have ported everything (in case it will be fixed later).
Given that now the size page view is no more constrained by the maximum size of a QWidget (which is two orders of magnitude less than the size of an int), we can handle documents with really many pages (10k+) with hopefully no issues.
BUG: 191859
As a side effect of the QScrollArea -> QAbstractScrollArea porting, it seems that there are no more drawing glitches when in right-to-left mode.
BUG: 192636


 M  +1 -1      part.cpp  
 M  +180 -158  ui/pageview.cpp  
 M  +16 -10    ui/pageview.h  
 M  +6 -4      ui/pageviewannotator.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=989285