[QGIS Commit] r11738 - trunk/qgis/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Sep 30 17:05:26 EDT 2009


Author: jef
Date: 2009-09-30 17:05:26 -0400 (Wed, 30 Sep 2009)
New Revision: 11738

Modified:
   trunk/qgis/src/app/composer/qgscomposer.cpp
Log:
QSvgGenerator::setTitle only available with Qt >=4.5

Modified: trunk/qgis/src/app/composer/qgscomposer.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposer.cpp	2009-09-30 13:55:40 UTC (rev 11737)
+++ trunk/qgis/src/app/composer/qgscomposer.cpp	2009-09-30 21:05:26 UTC (rev 11738)
@@ -747,7 +747,9 @@
   mComposition->setPlotStyle( QgsComposition::Print );
 
   QSvgGenerator generator;
+#if QT_VERSION >= 0x040500
   generator.setTitle( QgsProject::instance()->title() );
+#endif
   generator.setFileName( myOutputFileNameQString );
   //width in pixel
   int width = ( int )( mComposition->paperWidth() * mComposition->printResolution() / 25.4 );



More information about the QGIS-commit mailing list