mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fix for problems in composer image export dialog (ticket 1304)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9299 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
284902a37d
commit
8552d60b6a
@ -926,10 +926,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
|
|||||||
myFilters
|
myFilters
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
myQFileDialog->selectFile( file.fileName() );
|
|
||||||
|
|
||||||
// allow for selection of more than one file
|
myQFileDialog->setFileMode(QFileDialog::AnyFile);
|
||||||
myQFileDialog->setFileMode( QFileDialog::AnyFile );
|
|
||||||
|
|
||||||
// set the filter to the last one used
|
// set the filter to the last one used
|
||||||
myQFileDialog->selectFilter( myLastUsedFilter );
|
myQFileDialog->selectFilter( myLastUsedFilter );
|
||||||
@ -948,7 +946,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
myOutputFileNameQString = myQFileDialog->selectedFiles().first();
|
myOutputFileNameQString = myQFileDialog->selectedFiles().last();
|
||||||
|
qWarning(myOutputFileNameQString.toLocal8Bit().data());
|
||||||
QString myFilterString = myQFileDialog->selectedFilter();
|
QString myFilterString = myQFileDialog->selectedFilter();
|
||||||
QgsDebugMsg( QString( "Selected filter: %1" ).arg( myFilterString ) );
|
QgsDebugMsg( QString( "Selected filter: %1" ).arg( myFilterString ) );
|
||||||
QgsDebugMsg( QString( "Image type: %1" ).arg( myFilterMap[myFilterString] ) );
|
QgsDebugMsg( QString( "Image type: %1" ).arg( myFilterMap[myFilterString] ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user