Skip to content

Commit

Permalink
QSvgGenerator::setTitle only available with Qt >=4.5
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11738 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 30, 2009
1 parent a71b4d2 commit d7b1b20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit d7b1b20

Please sign in to comment.