mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 16:34:56 -04:00
no more poppler in MacOSX, fixed PDF crash issue
This commit is contained in:
@ -10,12 +10,20 @@
|
||||
|
||||
#include "bookmarks.h"
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
|
||||
#include "pdf_comic.h"
|
||||
|
||||
#else
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include "poppler-qt5.h"
|
||||
#else
|
||||
#include "poppler-qt4.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
class ComicDB;
|
||||
//#define EXTENSIONS << "*.jpg" << "*.jpeg" << "*.png" << "*.gif" << "*.tiff" << "*.tif" << "*.bmp" Comic::getSupportedImageFormats()
|
||||
//#define EXTENSIONS_LITERAL << ".jpg" << ".jpeg" << ".png" << ".gif" << ".tiff" << ".tif" << ".bmp" //Comic::getSupportedImageLiteralFormats()
|
||||
@ -138,7 +146,11 @@ class ComicDB;
|
||||
Q_OBJECT
|
||||
private:
|
||||
//pdf
|
||||
#ifdef Q_OS_MAC
|
||||
MacOSXPDFComic * pdfComic;
|
||||
#else
|
||||
Poppler::Document * pdfComic;
|
||||
#endif
|
||||
void renderPage(int page);
|
||||
|
||||
//void run();
|
||||
|
Reference in New Issue
Block a user