Ideal template for Dymo 30334/11345 for testing.

This commit is contained in:
Jim Evins
2019-01-22 22:14:22 -05:00
parent c2d024f47e
commit 212578c380
2 changed files with 18 additions and 16 deletions
+1 -4
View File
@@ -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 )