From 94fdba5abad2a7cc4f1ac24ce3b5dab642ea4c30 Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 5 Mar 2012 20:41:54 +0100 Subject: [PATCH] Fixed building (removed one unused slot) --- src/lib/other/pagescreen.cpp | 2 +- src/lib/other/pagescreen.h | 2 -- src/lib/tools/pagethumbnailer.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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();