OSDN Git Service

okular: rewrite snapshot taker to use KIO::PreviewJob
authorIvailo Monev <xakepa10@gmail.com>
Mon, 28 Nov 2022 03:48:24 +0000 (05:48 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 28 Nov 2022 03:48:24 +0000 (05:48 +0200)
commit5b77797be4e7326cffde3cd7322dfa69adc7ac6d
tree2e1ae4a85a036c20aa75a6428a52ea7d0ded0ebe
parent28a9ce423494067ed004f21677571132315b17b5
okular: rewrite snapshot taker to use KIO::PreviewJob

KIO::PreviewJob was made for this kind of things, it also does not involve
loading the file (which may play a sound even if the widget is not
visible), seeking, pausing and then grabbing a QWidget snapshot. the only
requirement is for ffmpegthumbs thumbnailer to be installed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
okular/generators/epub/converter.cpp
okular/okular_part.desktop
okular/ui/snapshottaker.cpp
okular/ui/snapshottaker.h
okular/ui/videowidget.cpp