mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Drop Qt 5 support
This commit is contained in:
@ -809,12 +809,7 @@ void PDFComic::process()
|
||||
}
|
||||
#else
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
pdfComic = Poppler::Document::load(_path);
|
||||
#else
|
||||
auto _pdfComic = Poppler::Document::load(_path);
|
||||
pdfComic = std::unique_ptr<Poppler::Document>(_pdfComic);
|
||||
#endif
|
||||
|
||||
if (!pdfComic) {
|
||||
moveToThread(QCoreApplication::instance()->thread());
|
||||
|
||||
@ -46,10 +46,6 @@ private:
|
||||
QFile pdfFile;
|
||||
};
|
||||
#else
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <poppler-qt6.h>
|
||||
#else
|
||||
#include "poppler-qt5.h"
|
||||
#endif // QT_VERSION
|
||||
#endif // Q_OS_MACOS
|
||||
#endif // PDF_COMIC_H
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
#include "pdf_comic.h"
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
#undef __OBJC_BOOL_IS_BOOL
|
||||
#endif
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
Reference in New Issue
Block a user