changeset 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 f4aaf1cd8cb0
children bec3ba3fcbc3 b574990e90a5
files src/converter.cpp src/l10n/main_de_DE.ts
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
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);
     }
 }
--- a/src/l10n/main_de_DE.ts	Mon Apr 11 14:38:27 2016 +0200
+++ b/src/l10n/main_de_DE.ts	Mon Apr 11 14:59:18 2016 +0200
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE TS>
-<TS version="2.0" language="de_DE">
+<TS version="2.1" language="de_DE">
 <context>
     <name>Converter</name>
     <message>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)