mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
okular: use new API for phonon call in snapshot taker
This commit is contained in:
parent
a0e6fd0d7e
commit
c924f0d9e5
1 changed files with 3 additions and 1 deletions
|
@ -14,11 +14,13 @@
|
|||
|
||||
#include <QtGui/QImage>
|
||||
|
||||
#include <KUrl>
|
||||
|
||||
SnapshotTaker::SnapshotTaker( const QString &url, QObject *parent )
|
||||
: QObject( parent )
|
||||
, m_player( new Phonon::VideoPlayer( Phonon::NoCategory, 0 ) )
|
||||
{
|
||||
m_player->load( url );
|
||||
m_player->load( KUrl(url) );
|
||||
m_player->hide();
|
||||
|
||||
connect(m_player->mediaObject(), SIGNAL(stateChanged(Phonon::State, Phonon::State)),
|
||||
|
|
Loading…
Add table
Reference in a new issue