mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
61cef7cc00
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
--- a/pdfviewer/PDFDocument.cpp
|
|
+++ b/pdfviewer/PDFDocument.cpp
|
|
@@ -360,7 +360,7 @@
|
|
}
|
|
|
|
#ifdef PHONON
|
|
-PDFMovie::PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page): VideoPlayer(parent), page(page)
|
|
+PDFMovie::PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page): VideoPlayer(parent), page(page)
|
|
{
|
|
REQUIRE(parent && annot && parent->getPDFDocument());
|
|
REQUIRE(annot->subType() == Poppler::Annotation::AMovie);
|
|
@@ -862,7 +862,7 @@
|
|
case Poppler::Annotation::AMovie: {
|
|
#ifdef PHONON
|
|
if (movie) delete movie;
|
|
- movie = new PDFMovie(this, dynamic_cast<Poppler::MovieAnnotation *>(annotation), page);
|
|
+ movie = new PDFMovie(this, qSharedPointerDynamicCast<Poppler::MovieAnnotation>(annotation), page);
|
|
movie->place();
|
|
movie->show();
|
|
movie->play();
|
|
--- a/pdfviewer/PDFDocument.h
|
|
+++ b/pdfviewer/PDFDocument.h
|
|
@@ -104,7 +104,7 @@
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
- PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page);
|
|
+ PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page);
|
|
void place();
|
|
protected:
|
|
void contextMenuEvent(QContextMenuEvent *);
|