diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-04-12 19:32:41 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-06-04 20:55:31 +0200 |
commit | 66aca3c846082c516bef3b35eb5332ebba24ce9e (patch) | |
tree | 8c42dcdaa5e47f1c1bf04a84b7cc66431117e7b4 /src/pdfquick/+Universal | |
parent | ea0e715a369b4a7ef9398e49c59dc425c8bf50a5 (diff) |
Add PdfLinkDelegate instead of link decoration style properties
This simplifies PdfStyle somewhat. PdfLinkDelegate could still be
replaced or augmented via file selectors, but we don't expect to
need to, since link delegates are already non-visual.
[ChangeLog][QtPDF] A PdfLinkDelegate will now be instantiated on top of
each hyperlink in the PdfMultiPageView, PdfScrollablePageView and
PdfPageView components, for event handling and to provide tapped() and
contextMenuRequested() signals. It is non-visual by default, but can be
customized, for example to draw underlines under hyperlinks if the PDF
documents are not expected to have them already.
Change-Id: Ib3726e7220a0c3858db564ca8d53a04625a11950
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/pdfquick/+Universal')
-rw-r--r-- | src/pdfquick/+Universal/PdfStyle.qml | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pdfquick/+Universal/PdfStyle.qml b/src/pdfquick/+Universal/PdfStyle.qml index c2d044f1d..5c01ec23a 100644 --- a/src/pdfquick/+Universal/PdfStyle.qml +++ b/src/pdfquick/+Universal/PdfStyle.qml @@ -49,8 +49,4 @@ QtObject { property color pageSearchResultsColor: withAlpha(Qt.lighter(Universal.accent, 1.5), 0.5) property color currentSearchResultStrokeColor: Universal.accent property real currentSearchResultStrokeWidth: 2 - property color linkUnderscoreColor: palette.link - property real linkUnderscoreStrokeWidth: -1 // no underlines under hyperlinks - property int linkUnderscoreStrokeStyle: ShapePath.DashLine - property var linkUnderscoreDashPattern: [ 1, 4 ] } |