QSvgGenerator::setTitle only available with Qt >=4.5

git-svn-id: http://svn.osgeo.org/qgis/trunk@11738 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2009-09-30 21:05:26 +00:00
parent a71b4d258d
commit d7b1b20b79

View File

@ -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 );