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:
Friedemann Kleint
2018-01-12 15:32:10 +01:00
parent 43936b1e86
commit cd85d3aba5
20 changed files with 612 additions and 35 deletions

View File

@@ -113,6 +113,14 @@ void ImageViewerPlugin::extensionsInitialized()
if (ImageViewer *iv = currentImageViewer())
iv->exportImage();
});
a = registerNewAction(Constants::ACTION_EXPORT_MULTI_IMAGES, tr("Export Multiple Images"),
QKeySequence());
connect(a, &QAction::triggered, this, []() {
if (ImageViewer *iv = currentImageViewer())
iv->exportMultiImages();
});
}
QAction *ImageViewerPlugin::registerNewAction(Core::Id id,