mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Trigger a rendering pass when the settings change
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include "continuous_view_model.h"
|
||||
#include "render.h"
|
||||
#include "resize_image.h"
|
||||
#include "configuration.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPaintEvent>
|
||||
@ -78,6 +79,12 @@ QSize ContinuousPageWidget::sizeHint() const
|
||||
return QSize(width(), continuousViewModel->totalHeight());
|
||||
}
|
||||
|
||||
void ContinuousPageWidget::invalidateScaledImageCache()
|
||||
{
|
||||
scaledPageCache.invalidateAll();
|
||||
update();
|
||||
}
|
||||
|
||||
void ContinuousPageWidget::onPageAvailable(int absolutePageIndex)
|
||||
{
|
||||
if (!render || !continuousViewModel || absolutePageIndex < 0 || absolutePageIndex >= continuousViewModel->numPages()) {
|
||||
|
||||
Reference in New Issue
Block a user