From 212578c380024147e3b1f79ce0ca7eb41851bd64 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 22 Jan 2019 22:14:22 -0500 Subject: [PATCH] Ideal template for Dymo 30334/11345 for testing. --- model/PageRenderer.cpp | 5 +---- templates/dymo-other-templates.xml | 29 +++++++++++++++++------------ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/model/PageRenderer.cpp b/model/PageRenderer.cpp index 9c2b702..b450ff7 100644 --- a/model/PageRenderer.cpp +++ b/model/PageRenderer.cpp @@ -193,10 +193,6 @@ namespace glabels void PageRenderer::print( QPrinter* printer ) const { QSizeF pageSize( mModel->tmplate()->pageWidth().pt(), mModel->tmplate()->pageHeight().pt() ); - if ( mModel->tmplate()->pageWidth().pt() > mModel->tmplate()->pageHeight().pt() ) - { - printer->setOrientation( QPrinter::Landscape ); - } printer->setPageSize( QPageSize(pageSize, QPageSize::Point) ); printer->setFullPage( true ); printer->setPageMargins( 0, 0, 0, 0, QPrinter::Point ); @@ -207,6 +203,7 @@ namespace glabels QRectF rectPts = printer->paperRect( QPrinter::Point ); painter.scale( rectPx.width()/rectPts.width(), rectPx.height()/rectPts.height() ); + for ( int iPage = 0; iPage < mNPages; iPage++ ) { if ( iPage ) diff --git a/templates/dymo-other-templates.xml b/templates/dymo-other-templates.xml index 538b5f6..a06f1cb 100644 --- a/templates/dymo-other-templates.xml +++ b/templates/dymo-other-templates.xml @@ -16,6 +16,23 @@