okular: use new API for phonon call in snapshot taker

This commit is contained in:
Ivailo Monev 2015-01-03 02:00:01 +00:00
parent a0e6fd0d7e
commit c924f0d9e5

View file

@ -14,11 +14,13 @@
#include <QtGui/QImage> #include <QtGui/QImage>
#include <KUrl>
SnapshotTaker::SnapshotTaker( const QString &url, QObject *parent ) SnapshotTaker::SnapshotTaker( const QString &url, QObject *parent )
: QObject( parent ) : QObject( parent )
, m_player( new Phonon::VideoPlayer( Phonon::NoCategory, 0 ) ) , m_player( new Phonon::VideoPlayer( Phonon::NoCategory, 0 ) )
{ {
m_player->load( url ); m_player->load( KUrl(url) );
m_player->hide(); m_player->hide();
connect(m_player->mediaObject(), SIGNAL(stateChanged(Phonon::State, Phonon::State)), connect(m_player->mediaObject(), SIGNAL(stateChanged(Phonon::State, Phonon::State)),