summaryrefslogtreecommitdiff
path: root/src/pdf/quick/plugin.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-04-30 13:10:17 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-04-30 22:24:21 +0200
commit9e3c27595113dd07ad936e73696aee62db4c6f3f (patch)
tree40bbb96903201cd3a98270895f9851047b482840 /src/pdf/quick/plugin.cpp
parent52f62a236808cf049ec1ca8cde76ab1b0995351a (diff)
downloadqtwebengine-9e3c27595113dd07ad936e73696aee62db4c6f3f.tar.gz
Add QML TableViewExtra type to help improve PdfMultiPageView positioning
TableView in Qt 6 adds its own versions of these functions, but we need them now so that PdfMultiPageView can accurately jump back and forth between specific locations and zoom levels. Done-with: Richard Gustavsen Task-number: QTBUG-83679 Change-Id: I895186feab572395af4c49b477b1695480a813df Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/pdf/quick/plugin.cpp')
-rw-r--r--src/pdf/quick/plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pdf/quick/plugin.cpp b/src/pdf/quick/plugin.cpp
index 670fe0bf9..b082fcb4a 100644
--- a/src/pdf/quick/plugin.cpp
+++ b/src/pdf/quick/plugin.cpp
@@ -43,6 +43,7 @@
#include "qquickpdfnavigationstack_p.h"
#include "qquickpdfsearchmodel_p.h"
#include "qquickpdfselection_p.h"
+#include "qquicktableviewextra_p.h"
QT_BEGIN_NAMESPACE
@@ -89,6 +90,7 @@ public:
qmlRegisterType<QQuickPdfNavigationStack>(uri, 5, 15, "PdfNavigationStack");
qmlRegisterType<QQuickPdfSearchModel>(uri, 5, 15, "PdfSearchModel");
qmlRegisterType<QQuickPdfSelection>(uri, 5, 15, "PdfSelection");
+ qmlRegisterType<QQuickTableViewExtra>(uri, 5, 15, "TableViewExtra");
qmlRegisterType(QUrl("qrc:/qt-project.org/qtpdf/qml/PdfPageView.qml"), uri, 5, 15, "PdfPageView");
qmlRegisterType(QUrl("qrc:/qt-project.org/qtpdf/qml/PdfMultiPageView.qml"), uri, 5, 15, "PdfMultiPageView");