slackbuilds_ponce/office/texstudio/phonon-fix.patch
Larry Hajali 61cef7cc00
office/texstudio: Updated for version 2.11.2
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
2016-10-15 07:10:01 +07:00

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 *);