diff options
author | Tobias Koenig <tobias.koenig@kdab.com> | 2016-08-24 13:07:25 +0200 |
---|---|---|
committer | Tobias Koenig <tobias.koenig@kdab.com> | 2016-08-24 12:14:53 +0000 |
commit | c84c6957435bbbd845eb1a4c0107ab63615be7ff (patch) | |
tree | 4b364b03c391df760af4cc0e9d01137e8deab90b | |
parent | 3461c9f419ce34af9ecd00855c16c2d1454493bc (diff) |
pdfviewer: Fix zooming of content
Clear the page cache after zoom level has changed, otherwise
the page content won't be rerendered with new zoom level.
Change-Id: If374d65570c0ecce3a94d496d57a8e28dcbf8e0a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | examples/widgets/pdfviewer/sequentialpagewidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/pdfviewer/sequentialpagewidget.cpp b/examples/widgets/pdfviewer/sequentialpagewidget.cpp index 4107b86..229ba61 100644 --- a/examples/widgets/pdfviewer/sequentialpagewidget.cpp +++ b/examples/widgets/pdfviewer/sequentialpagewidget.cpp @@ -86,6 +86,7 @@ void SequentialPageWidget::invalidate() setMinimumSize(m_totalSize); emit zoomChanged(m_zoom); qCDebug(lcExample) << "total size" << m_totalSize; + m_pageCache.clear(); update(); } |