diff --git a/src/lib/other/pagescreen.cpp b/src/lib/other/pagescreen.cpp index e9280fb6b..d71aed6e2 100644 --- a/src/lib/other/pagescreen.cpp +++ b/src/lib/other/pagescreen.cpp @@ -66,7 +66,7 @@ void PageScreen::createThumbnail() QSize originalSize = page->viewportSize(); page->setViewportSize(page->mainFrame()->contentsSize()); - m_pageImage = QImage(page->viewportSize(), QImage::Format_ARGB32); + m_pageImage = QImage(page->viewportSize(), QImage::Format_ARGB32_Premultiplied); QPainter painter(&m_pageImage); page->mainFrame()->render(&painter); painter.end(); diff --git a/src/lib/other/pagescreen.h b/src/lib/other/pagescreen.h index f87c18d84..a28a23550 100644 --- a/src/lib/other/pagescreen.h +++ b/src/lib/other/pagescreen.h @@ -46,8 +46,6 @@ private slots: void dialogAccepted(); - void buttonClicked(QAbstractButton* b); - private: void createPixmap(); diff --git a/src/lib/tools/pagethumbnailer.cpp b/src/lib/tools/pagethumbnailer.cpp index 17dfc7ce1..01ae0fcb4 100644 --- a/src/lib/tools/pagethumbnailer.cpp +++ b/src/lib/tools/pagethumbnailer.cpp @@ -118,7 +118,7 @@ void PageThumbnailer::createThumbnail(bool status) m_title = m_page->mainFrame()->title(); - QImage image(m_page->viewportSize(), QImage::Format_ARGB32); + QImage image(m_page->viewportSize(), QImage::Format_ARGB32_Premultiplied); QPainter painter(&image); m_page->mainFrame()->render(&painter); painter.end();