[Okular-devel] Review Request 123427: Save view information per file

Felix Mauch felix_mauch at web.de
Thu Aug 6 15:25:12 UTC 2015



> On Juli 16, 2015, 11:09 nachm., Albert Astals Cid wrote:
> > If you're going to save this, you probably want to save whether trim margins is enabled or not too.
> > 
> > Also please do not introduce a new variable to store the viewmode, it makes it harder just to make sure it's synced correctly with the actions, so why not just use the actions?

That's a very good point! I removed the variable and use the actions. I'm not really happy with checking each possible mode individually with d->aViewMode->menu()->actions().at(0)->isChecked(). However, I was not able to find something that returns the checked action.


- Felix


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


On Aug. 6, 2015, 3:22 nachm., Felix Mauch wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123427/
> -----------------------------------------------------------
> 
> (Updated Aug. 6, 2015, 3:22 nachm.)
> 
> 
> Review request for Okular.
> 
> 
> Bugs: 341318
>     http://bugs.kde.org/show_bug.cgi?id=341318
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> Adds the functiionality to save the view mode (single page, facing...) and continuous scrolling to the document information as it is already done with the zoom information.
> 
> 
> Diffs
> -----
> 
>   core/document.cpp 9d12488 
>   core/view.h a369d24 
>   ui/pageview.h e65b575 
>   ui/pageview.cpp b57e6ae 
> 
> Diff: https://git.reviewboard.kde.org/r/123427/diff/
> 
> 
> Testing
> -------
> 
> I use a version with this patch applied since a couple of days. The intended functionality seems to work reliably.
> Maybe it would be nice to implement a "standard view" selection in the options dialog as it's done for the zoom mode.
> 
> 
> Thanks,
> 
> Felix Mauch
> 
>

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


More information about the Okular-devel mailing list