diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-03-15 10:42:07 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-03-17 12:35:38 +0100 |
commit | 288e9be6ba2be40761333036f3397298df5e1018 (patch) | |
tree | c274dc8466e134c3d3e0e6211e9c2c8c09951021 /examples | |
parent | f36f0d5202fee3b778290dd68d1c30911b75b5b4 (diff) | |
download | qtwebengine-288e9be6ba2be40761333036f3397298df5e1018.tar.gz |
Teach QPdfView to render search result highlights
The bounding boxes of all visible search results are filled with a
translucent color on top of the page image, because we don't know
whether the image is opaque or not. currentSearchResult is further
highlighted by drawing bounding box borders.
The colors are the same as PdfStyle.pageSearchResultsColor and
PdfStyle.currentSearchResultStrokeColor, respectively. Perhaps they
could be configurable somehow in the future, but it's not clear yet what
API that ought to have, since we do not have suitable QPalette roles
(except QPalette::Highlight, which is not translucent).
Task-number: QTBUG-77507
Task-number: QTBUG-92973
Change-Id: I3df634229811e72d2d438a39997e0b4887d6bf11
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions