File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44VideoItem::VideoItem (const QString &file, QGraphicsItem *parent)
55 : QGraphicsVideoItem(parent), _pos(0 ), _eos(0 )
66{
7- _player = new QMediaPlayer (this );
8- _player->setVideoOutput (this );
9- connect (_player, &QMediaPlayer::mediaStatusChanged, this ,
10- &VideoItem::mediaStatusChanged);
7+ _player = new QMediaPlayer (this );
8+ _player->setVideoOutput (this );
9+ connect (_player, &QMediaPlayer::mediaStatusChanged, this ,
10+ &VideoItem::mediaStatusChanged);
1111#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
12- _player->setMedia (QUrl::fromLocalFile (file));
12+ _player->setMedia (QUrl::fromLocalFile (file));
1313#else
14- _player->setSource (QUrl::fromLocalFile (file));
14+ _player->setSource (QUrl::fromLocalFile (file));
1515#endif
16- _player->pause ();
16+ _player->pause ();
1717}
1818
1919void VideoItem::seek (qint64 pos)
You can’t perform that action at this time.
0 commit comments