From: Konrad Rosenbaum Date: Sun, 5 Feb 2017 13:18:21 +0000 (+0100) Subject: fix printing X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3cce0836977d2d2d5d58f85b4a22a75490338fc8;p=web%2Fkonrad%2Fsmoke.git fix printing Change-Id: I0b0df7a691ba9790089d101ea039caf179f23c75 --- diff --git a/commonlib/templates/labeldlg.cpp b/commonlib/templates/labeldlg.cpp index 4d6c6e7..24a192f 100644 --- a/commonlib/templates/labeldlg.cpp +++ b/commonlib/templates/labeldlg.cpp @@ -557,6 +557,7 @@ bool MLabelConfig::configurePrinter(QPrinter&prn ) const mr=set.value("marginRight").toDouble(); mb=set.value("marginBottom").toDouble(); mt=set.value("marginTop").toDouble(); + prn.setFullPage(true); prn.setPageMargins(QMarginsF(ml,mr,mb,mt),QPageLayout::Millimeter); prn.setDuplex(QPrinter::DuplexMode(set.value("duplex",QPrinter::DuplexAuto).toInt())); prn.setOrientation((set.value("orientation","portrait").toString()=="portrait")?QPrinter::Portrait:QPrinter::Landscape);