[Okular-devel] Review Request 127013: Properly show marker for current section in TOC

Albert Astals Cid aacid at kde.org
Thu Feb 18 22:33:25 UTC 2016



> On Feb. 18, 2016, 12:16 a.m., Miklós Máté wrote:
> > ui/tocmodel.cpp, line 152
> > <https://git.reviewboard.kde.org/r/127013/diff/1/?file=443812#file443812line152>
> >
> >     No. This function marks all the TOC items that contain the current page, but later in the data() method they are filtered, and in the end only one triangle marker will be shown (depending on how the tree is expanded in the view). If there are multiple TOC items on the same level that point to the same page, this algorithm only marks the last one.

I'm not convinced marking the last one is the best, could we mark "the correct" one? After all we know the viewports for the two items so we know what's more correct than the other, no? If you need such a document i can send it to you.


- Albert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127013/#review92516
-----------------------------------------------------------


On Feb. 8, 2016, 5:49 p.m., Miklós Máté wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127013/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2016, 5:49 p.m.)
> 
> 
> Review request for Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> fixes bug #342076
> 
> 
> Diffs
> -----
> 
>   ui/toc.cpp 09625af 
>   ui/tocmodel.cpp ce93366 
> 
> Diff: https://git.reviewboard.kde.org/r/127013/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Miklós Máté
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20160218/cd8623a0/attachment.html>


More information about the Okular-devel mailing list