diff options
Diffstat (limited to 'printer.cpp')
-rw-r--r-- | printer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/printer.cpp b/printer.cpp index eee0fdbd6..bce42c30d 100644 --- a/printer.cpp +++ b/printer.cpp @@ -149,6 +149,7 @@ void Printer::print() pageSize.setHeight(printerPtr->pageRect(QPrinter::Inch).height() * dpi); pageSize.setWidth(printerPtr->pageRect(QPrinter::Inch).width() * dpi); webView->page()->setViewportSize(pageSize); + webView->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); webView->setHtml(t.generate()); if (printOptions->color_selected && printerPtr->colorMode()) { printerPtr->setColorMode(QPrinter::Color); |