mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-01-28 16:20:17 +01:00
Issue #102: Thumbnails page size fix
This commit is contained in:
parent
acafeb0144
commit
8338d7d85d
@ -128,7 +128,7 @@ void PDFWidget::updateRenderer(RendererEngine engine, int samplesCount)
|
||||
void PDFWidget::updateCacheLimits(int compiledPageCacheLimit, int thumbnailsCacheLimit, int fontCacheLimit, int instancedFontCacheLimit)
|
||||
{
|
||||
m_proxy->getCompiler()->setCacheLimit(compiledPageCacheLimit);
|
||||
QPixmapCache::setCacheLimit(thumbnailsCacheLimit);
|
||||
QPixmapCache::setCacheLimit(qMax(thumbnailsCacheLimit, 16384));
|
||||
m_proxy->getFontCache()->setCacheLimits(fontCacheLimit, instancedFontCacheLimit);
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
|
||||
namespace pdfviewer
|
||||
{
|
||||
const int PIXMAP_CACHE_LIMIT = QPixmapCache::cacheLimit();
|
||||
|
||||
void PDFViewerSettings::setSettings(const PDFViewerSettings::Settings& settings)
|
||||
{
|
||||
@ -284,7 +283,7 @@ PDFViewerSettings::Settings::Settings() :
|
||||
m_allowDeveloperMode(false),
|
||||
m_multithreadingStrategy(pdf::PDFExecutionPolicy::Strategy::AlwaysMultithreaded),
|
||||
m_compiledPageCacheLimit(512 * 1024),
|
||||
m_thumbnailsCacheLimit(PIXMAP_CACHE_LIMIT),
|
||||
m_thumbnailsCacheLimit(64 * 1024),
|
||||
m_fontCacheLimit(pdf::DEFAULT_FONT_CACHE_LIMIT),
|
||||
m_instancedFontCacheLimit(pdf::DEFAULT_REALIZED_FONT_CACHE_LIMIT),
|
||||
m_speechRate(0.0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user