mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Replace Q_OS_MAC with Q_OS_MACOS
This commit is contained in:
@ -26,7 +26,7 @@ void InitialComicInfoExtractor::extract()
|
||||
}
|
||||
#ifndef NO_PDF
|
||||
if (fi.suffix().compare("pdf", Qt::CaseInsensitive) == 0) {
|
||||
#if defined Q_OS_MAC && defined USE_PDFKIT
|
||||
#if defined Q_OS_MACOS && defined USE_PDFKIT
|
||||
auto pdfComic = std::make_unique<MacOSXPDFComic>();
|
||||
if (!pdfComic->openComic(_fileSource)) {
|
||||
return;
|
||||
@ -57,7 +57,7 @@ void InitialComicInfoExtractor::extract()
|
||||
#endif
|
||||
_numPages = pdfComic->numPages();
|
||||
if (_numPages >= _coverPage) {
|
||||
#if defined Q_OS_MAC || defined USE_PDFIUM
|
||||
#if defined Q_OS_MACOS || defined USE_PDFIUM
|
||||
QImage p = pdfComic->getPage(_coverPage - 1); // TODO check if the page is valid
|
||||
#else
|
||||
QImage p = pdfComic->page(_coverPage - 1)->renderToImage(72, 72);
|
||||
|
Reference in New Issue
Block a user