Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Guard against crash in QQuickPdfSearchModel::setDocument() | Shawn Rutledge | 2020-02-19 | 1 | -1/+1 |
| | | | | | | | If the document is null, ignore it. Change-Id: I3cebd049fb5d16d0064dddf00183f231019ef03c Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> | ||||
* | PdfSearchModel: be QALM and find search results on all pages | Shawn Rutledge | 2020-02-17 | 1 | -46/+158 |
| | | | | | | | | | | | | | | It's a QAbstractListModel, so now PdfMultiPageView has a ListView in a left-side Drawer showing all results found so far. - In PdfMultiPageView, multiple pages exist at once, so it makes sense to use the same searchmodel for all. - It's faster and saves memory. - Search results on each page can be cached. - It's possible to show search results in a ListView or QListView. Change-Id: I66fba6975954a09a4d23262be87ff8cc25ee7478 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> | ||||
* | Add QPdfSearchModel, QML PdfSearchModel and PdfPageView | Shawn Rutledge | 2020-01-23 | 1 | -0/+165 |
This enables searching a PDF for a text string and getting the boundaries of the areas where it is found. The boundaries are returned as polygons intended to be rendered with PathMultiline. PdfPageView is a QML component intended to be a drop-in viewer for use in applications that need the most common PDF viewing functionality. More advanced applications are free to use it as a starting point for customization. Task-number: QTBUG-77507 Task-number: QTBUG-77514 Change-Id: Id08ac30224e41b6cdfb9300cc4288d5750259f78 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> |