Skip to content
Permalink
Browse files

dont set print to file because of bug in Qt<=4.2.2

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6194 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Dec 6, 2006
1 parent 563c927 commit 1b330fcb17ece11595cb03a689a58cb713836813
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/composer/qgscomposer.cpp
@@ -285,8 +285,11 @@ void QgsComposer::on_mActionPrint_activated(void)
// The Mac Print dialog provides an option to create a pdf which is
// intended to be invisible to the application. If an eps is desired,
// a custom Mac Print dialog is needed.
mPrinter->setOutputToFile (true ) ;
mPrinter->setOutputFileName ( QDir::convertSeparators ( QDir::home().path() + "/" + "qgis.eps") );

// There is a bug in Qt<=4.2.2 (dialog is not correct) if output is set to file
// => disable until they fix it
//mPrinter->setOutputToFile (true ) ;
//mPrinter->setOutputFileName ( QDir::convertSeparators ( QDir::home().path() + "/" + "qgis.eps") );
#endif

if ( mComposition->paperOrientation() == QgsComposition::Portrait ) {
@@ -297,6 +300,12 @@ void QgsComposer::on_mActionPrint_activated(void)
mPrinter->setColorMode ( QPrinter::Color );
mPrinter->setPageSize ( QPrinter::A4 );
}
else
{
// Because of bug in Qt<=4.2.2 (dialog is not correct) we have to reset always
// to printer otherwise print to file is checked but printer combobox is in dialog
mPrinter->setOutputToFile (false) ;
}

mPrinter->setResolution ( mComposition->resolution() );

0 comments on commit 1b330fc

Please sign in to comment.
You can’t perform that action at this time.