diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-02-20 14:09:27 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-02-20 15:55:18 +0100 |
commit | ff13e6532975b5372280c02061cb1b7227cf6699 (patch) | |
tree | 52839b494927fee50db7d5d4da94529bd5c4d77f /src/pdf/quick/plugin.cpp | |
parent | f467edc97e66727be7fa3747913e4e01672d4b71 (diff) |
Add PdfScrollablePageView, use it in the pdfviewer example
PdfPageView might be useful in some cases, but we need to get feature
parity with PdfMultiPageView as much as possible, including scrollbars.
Including them in the view is convenient, but also less flexible.
Change-Id: Ibbe6a090a5f5b1d340124986fe49672d682ddedb
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/pdf/quick/plugin.cpp')
-rw-r--r-- | src/pdf/quick/plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/quick/plugin.cpp b/src/pdf/quick/plugin.cpp index a831a09b6..bb68a817e 100644 --- a/src/pdf/quick/plugin.cpp +++ b/src/pdf/quick/plugin.cpp @@ -90,6 +90,7 @@ public: 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"); + qmlRegisterType(QUrl("qrc:/qt-project.org/qtpdf/qml/PdfScrollablePageView.qml"), uri, 5, 15, "PdfScrollablePageView"); } }; |