From ccbd6fbdbe071f42e1c060ca579786758701f358 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 15 Jan 2020 09:44:10 +0100 Subject: Add PdfLinkModel Internal links and web links populate the QALM, which can then be used to drive a Repeater to position highlight rectangles with TapHandlers, which will handle a click by jumping to the link destination. Fixes: QTBUG-77511 Change-Id: I3b5b96d6e82bfd578f31f631f24279173036a080 Reviewed-by: Leena Miettinen Reviewed-by: Michal Klocek --- src/pdf/quick/plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pdf/quick/plugin.cpp') diff --git a/src/pdf/quick/plugin.cpp b/src/pdf/quick/plugin.cpp index 72aa12d6a..519ea43af 100644 --- a/src/pdf/quick/plugin.cpp +++ b/src/pdf/quick/plugin.cpp @@ -39,6 +39,7 @@ #include #include #include "qquickpdfdocument_p.h" +#include "qquickpdflinkmodel_p.h" #include "qquickpdfsearchmodel_p.h" #include "qquickpdfselection_p.h" @@ -81,6 +82,7 @@ public: qmlRegisterModule(uri, 2, QT_VERSION_MINOR); qmlRegisterType(uri, 5, 15, "PdfDocument"); + qmlRegisterType(uri, 5, 15, "PdfLinkModel"); qmlRegisterType(uri, 5, 15, "PdfSearchModel"); qmlRegisterType(uri, 5, 15, "PdfSelection"); -- cgit v1.2.3