mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Strict qt5.15 breaks poppler
This commit is contained in:
@ -775,7 +775,11 @@ void Viewer::mouseMoveEvent(QMouseEvent *event)
|
|||||||
|
|
||||||
const QPixmap Viewer::pixmap()
|
const QPixmap Viewer::pixmap()
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
return content->pixmap();
|
return content->pixmap();
|
||||||
|
#else
|
||||||
|
return content->pixmap(Qt::ReturnByValue);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::magnifyingGlassSwitch()
|
void Viewer::magnifyingGlassSwitch()
|
||||||
|
11
config.pri
11
config.pri
@ -36,9 +36,6 @@ defineTest(minQtVersion) {
|
|||||||
error(YACReader requires Qt 5.15 or newer but $$[QT_VERSION] was detected)
|
error(YACReader requires Qt 5.15 or newer but $$[QT_VERSION] was detected)
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
|
||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
|
||||||
|
|
||||||
# reduce log pollution
|
# reduce log pollution
|
||||||
CONFIG += silent
|
CONFIG += silent
|
||||||
|
|
||||||
@ -81,3 +78,11 @@ unix:!macx:!CONFIG(poppler):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
|||||||
macx:!CONFIG(pdfkit):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
macx:!CONFIG(pdfkit):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
||||||
CONFIG += pdfkit
|
CONFIG += pdfkit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
!CONFIG(poppler) {
|
||||||
|
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
||||||
|
} else {
|
||||||
|
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050900
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
|
Reference in New Issue
Block a user