diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-24 13:18:52 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-25 08:31:57 +0000 |
commit | 66e01f2866479fe9f27f663ddcdc32fefb52e193 (patch) | |
tree | e65fa99c568dbb82056fb1bc2f0f57eb4c04f7ff /examples | |
parent | 26db8c70baa518843ec5ceba04196608f4b82bf0 (diff) |
Move printToPDF to page
The API needs nothing from view and view just forwards it to the page
anyway. This is an page level API, this also makes it work without
being shown.
Change-Id: I3b8555ab472ec2c7632db3655bcc31925fcfa001
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webenginewidgets/demobrowser/browsermainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webenginewidgets/demobrowser/browsermainwindow.cpp b/examples/webenginewidgets/demobrowser/browsermainwindow.cpp index 60b69ddd6..e3c7c466d 100644 --- a/examples/webenginewidgets/demobrowser/browsermainwindow.cpp +++ b/examples/webenginewidgets/demobrowser/browsermainwindow.cpp @@ -712,7 +712,7 @@ void BrowserMainWindow::slotFilePrintToPDF() if (dialog->exec() != QDialog::Accepted || printer.outputFileName().isEmpty()) return; - currentTab()->printToPDF(printer.outputFileName(), printer.pageLayout()); + currentTab()->page()->printToPDF(printer.outputFileName(), printer.pageLayout()); #endif // QT_NO_PRINTER } |