Use the non deprecated version of the PixmapRequest constructor

This commit is contained in:
Albert Astals Cid 2021-09-09 16:36:54 +02:00
parent bcbaec0563
commit 8ea7214b01

View file

@ -92,7 +92,7 @@ void KIMGIOTest::testExifOrientation()
QCOMPARE(m_document->page(0)->height(), double(2));
// Generate pixmap
Okular::PixmapRequest *req = new Okular::PixmapRequest(dummyDocumentObserver, 0, 3, 2, 1, Okular::PixmapRequest::NoFeature);
Okular::PixmapRequest *req = new Okular::PixmapRequest(dummyDocumentObserver, 0, 3, 2, qApp->devicePixelRatio(), 1, Okular::PixmapRequest::NoFeature);
m_document->requestPixmaps(QLinkedList<Okular::PixmapRequest *>() << req);
QVERIFY(m_document->page(0)->hasPixmap(dummyDocumentObserver, 3, 2));