From a1ec69a14620af49aff58f3c2cdc279c56e77d8a Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 25 May 2012 21:45:40 +0200 Subject: [PATCH] only paint the exposed area --- active/components/pageitem.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/active/components/pageitem.cpp b/active/components/pageitem.cpp index 76a900090..7ca7faad5 100644 --- a/active/components/pageitem.cpp +++ b/active/components/pageitem.cpp @@ -162,16 +162,13 @@ void PageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, const int priority = m_observerId == PAGEVIEW_ID ? PAGEVIEW_PRELOAD_PRIO : THUMBNAILS_PRELOAD_PRIO; if (m_intentionalDraw) { - qDebug() << "***************************"; - qDebug() << "grabbing pixmaps!"<< this ; QLinkedList< Okular::PixmapRequest * > requestedPixmaps; requestedPixmaps.push_back(new Okular::PixmapRequest(m_observerId, m_pageNumber, width(), height(), priority, true)); m_documentItem.data()->document()->requestPixmaps( requestedPixmaps ); - qDebug() << "***************************"; } m_intentionalDraw = false; const int flags = PagePainter::Accessibility | PagePainter::Highlights | PagePainter::Annotations; - PagePainter::paintPageOnPainter(painter, m_page, m_observerId, flags, width(), height(), boundingRect().toRect()); + PagePainter::paintPageOnPainter(painter, m_page, m_observerId, flags, width(), height(), option->exposedRect.toRect()); if (setAA) { painter->restore();