Skip to content
Permalink
Browse files
QSvgGenerator::setTitle only available with Qt >=4.5
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11738 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 30, 2009
1 parent 463fbab commit cc84f12
Showing 1 changed file with 2 additions and 0 deletions.
@@ -747,7 +747,9 @@ void QgsComposer::on_mActionExportAsSVG_triggered()
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 );

0 comments on commit cc84f12

Please sign in to comment.