[Okular-devel] [okular] [Bug 328125] Add "play/pause" button in "Presentation Mode"

Saheb Preet Singh saheb.preet at gmail.com
Thu Jan 16 09:14:14 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=328125

Saheb Preet Singh <saheb.preet at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |saheb.preet at gmail.com

--- Comment #3 from Saheb Preet Singh <saheb.preet at gmail.com> ---
hi,

i just tried to implement the button and its working now. Here is a short
explanation of what i did :-

Added a new action in part.cpp for play pause button.
Enabled the action in presentationwidget.cpp and added it to the topBar.
Finally connected the toggled signal to a new slot.
In that new slot when the signal is toggled on m_nextPageTimer is started and
its singleShot is set to false, so that it starts playing the page.
when the signal is toggled off m_nextPageTimer is stopped and the singleShot is
set to true.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list