forked from qt-creator/qt-creator
Add SVG multi export
Add a second SVG export option that allows for exporting a series of icons of various size in one go. A dialog is shown that allows for entering a file name pattern with place holders and a list of sizes. Change-Id: Ic644a9d402aa44af5899c29cf83051fdd7bba3d1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Diana de Sousa <diana.desousa@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "exportdialog.h"
|
||||
#include "imageview.h" // ExportData
|
||||
|
||||
#include <coreplugin/coreicons.h>
|
||||
|
||||
@@ -56,7 +57,7 @@ namespace Internal {
|
||||
|
||||
enum { exportMinimumSize = 1, exportMaximumSize = 2000 };
|
||||
|
||||
static QString imageNameFilterString()
|
||||
QString ExportDialog::imageNameFilterString()
|
||||
{
|
||||
static QString result;
|
||||
if (result.isEmpty()) {
|
||||
@@ -198,5 +199,10 @@ void ExportDialog::setExportFileName(const QString &f)
|
||||
m_pathChooser->setFileName(Utils::FileName::fromString(f));
|
||||
}
|
||||
|
||||
ExportData ExportDialog::exportData() const
|
||||
{
|
||||
return {exportFileName(), exportSize()};
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ImageViewer
|
||||
|
||||
Reference in New Issue
Block a user