mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Strict qt5.15 breaks poppler
This commit is contained in:
parent
ab2de73285
commit
4bee296096
@ -775,7 +775,11 @@ void Viewer::mouseMoveEvent(QMouseEvent *event)
|
||||
|
||||
const QPixmap Viewer::pixmap()
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
return content->pixmap();
|
||||
#else
|
||||
return content->pixmap(Qt::ReturnByValue);
|
||||
#endif
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# reduce log pollution
|
||||
CONFIG += silent
|
||||
|
||||
@ -81,3 +78,11 @@ unix:!macx:!CONFIG(poppler):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
||||
macx:!CONFIG(pdfkit):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
||||
CONFIG += pdfkit
|
||||
}
|
||||
|
||||
!CONFIG(poppler) {
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
|
||||
} else {
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050900
|
||||
}
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
Loading…
x
Reference in New Issue
Block a user