From: ouv Date: Fri, 1 Jul 2011 12:37:46 +0000 (+0000) Subject: Printing in Plot2d: default orientation of page has been set to "landscape". X-Git-Tag: DIAGRAM_1_0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8dbeb738cd285bb47852a035352cc336a0104452;p=modules%2Fgui.git Printing in Plot2d: default orientation of page has been set to "landscape". --- diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 85ffb2ca0..5d3c36c89 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -2302,11 +2302,13 @@ bool Plot2d_ViewFrame::print( const QString& file, const QString& format ) const SUIT_Application* anApp = SUIT_Session::session()->activeApplication(); QPrinter aPrinter( QPrinter::HighResolution ); - aPrinter.setPageSize( QPrinter::A4 ); if( anApp ) aPrinter.setPrinterName( anApp->getLastUsedPrinter() ); + aPrinter.setPageSize( QPrinter::A4 ); + aPrinter.setOrientation( QPrinter::Landscape ); + QPrintDialog aDlg( &aPrinter ); int aStatus = aDlg.exec(); if( aStatus )