summaryrefslogtreecommitdiffstats
path: root/src/pdfquick/qml
Commit message (Collapse)AuthorAgeFilesLines
* QQuickPdfSelection: Fix division by zeroPeter Varga2022-02-081-1/+1
| | | | | | | | | | | | | | | | | | | QQuickPdfSelection::m_renderScale is used for division in QQuickPdfSelection::updateResults(). Add warning message to setRenderScale() and ignore the new value if it is zero. Also avoid setting PdfSelection.renderScale to zero in PdfScrollablePageView. The division caused an assert: ASSERT: "divisor < 0 || divisor > 0" in file qtbase/src/corelib/tools/qpoint.h, line 299 It was reproducible with the pdfviewer quick example. Change-Id: I31e08a9a28392fcc132470c8d94af1307447565a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 4f7b7995552b0220a9e431266e0119cd03a233cf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtPdf: Fix QML warning about usage of injected signal parametersPeter Varga2022-02-082-2/+2
| | | | | | | Change-Id: I4bbc3c1adf4ba2bc5cc8d71278e201ee05fc85bd Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit f28c0e6680f3ef8ebb5e82d0fe375afbc6fb0fe9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QtPdf to cmake buildMichal Klocek2021-08-186-0/+1180
Port QtPdf to Qt6: * QtPdf,QtPdfWidgets,QtPdfQuick libs * QtPdfQuickPlugin, QtPdfPlugin (imageformat) plugins * widget and quick examples * qtpdf tests To fit gn cmake integration and new repo layout code is a bit reshuffled. Compared to qmke build following features are not ported yet: * ios fat libs * qtbase 3rdparty static dependencies WebEngine build can be skipped with setting QT_FEATURE_qtwebengine_build=OFF Note this patch needs follow up for 6.2 branch to disable qtpdf builds by default, since this should not part of qt 6.2 release. Task-number: QTBUG-95353 Change-Id: I4dd9f3934bdd478fb6d2fa686074a24d91f09953 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 79d04aa9e3e9aa84d7378260519f9e9a6759dc41) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>