From 8ea7214b01c78f453a9fa950d7af0c03a75d608d Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 9 Sep 2021 16:36:54 +0200 Subject: [PATCH] Use the non deprecated version of the PixmapRequest constructor --- generators/kimgio/tests/kimgiotest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/kimgio/tests/kimgiotest.cpp b/generators/kimgio/tests/kimgiotest.cpp index d521a5a7b..417bdd0f7 100644 --- a/generators/kimgio/tests/kimgiotest.cpp +++ b/generators/kimgio/tests/kimgiotest.cpp @@ -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() << req); QVERIFY(m_document->page(0)->hasPixmap(dummyDocumentObserver, 3, 2));