mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 10:25:36 +00:00
avoid some redraws
This commit is contained in:
parent
863e34dc7a
commit
11bb8c0a7d
|
@ -293,11 +293,18 @@ void PageItem::delayedRedraw()
|
|||
}
|
||||
}
|
||||
|
||||
void PageItem::pageHasChanged( int page, int flags )
|
||||
void PageItem::pageHasChanged(int page, int flags)
|
||||
{
|
||||
Q_UNUSED(flags)
|
||||
if (m_viewPort.pageNumber == page) {
|
||||
m_redrawTimer->start(REDRAW_TIMEOUT);
|
||||
if (flags == 32) {
|
||||
// skip bounding box updates
|
||||
//kDebug() << "32" << m_page->boundingBox();
|
||||
} else if (flags == Okular::DocumentObserver::Pixmap) {
|
||||
// if pixmaps have updated, just repaint .. don't bother updating pixmaps AGAIN
|
||||
update();
|
||||
} else {
|
||||
m_redrawTimer->start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue