Mercurial > clickerconvert
diff src/converter.cpp @ 35:ca66763b6524 0.8
Add commented out layout test
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 11 Apr 2016 14:59:18 +0200 |
parents | ad54c98cb8d8 |
children | 5354cbda7188 41cd27a64365 |
line wrap: on
line diff
--- a/src/converter.cpp Mon Apr 11 14:38:27 2016 +0200 +++ b/src/converter.cpp Mon Apr 11 14:59:18 2016 +0200 @@ -345,6 +345,13 @@ printer.setPaperSize(QPrinter::A4); printer.setOutputFileName(output.fileName()); doc.setHtml(htmlString); + /* + QPageLayout layout = printer.pageLayout(); + layout.setUnits(QPageLayout::Millimeter); + layout.setMargins(QMarginsF(20, 20, 20, 20)); + printer.setPageLayout(layout); + doc.setPageSize(printer.pageRect().size()); + */ doc.print(&printer); } }