mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
a71b4d258d
commit
d7b1b20b79
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user