forked from qt-creator/qt-creator
ImageViewer: Add option to export images from SVG.
Add a tool button showing a dialog with file name and size for exporting images from SVG. [ChangeLog][ImageViewer] Added option to export images from SVG. Change-Id: I84e04dc166e70b0359eba0f19703a75b882a2bc2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -113,6 +113,13 @@ void ImageViewerPlugin::extensionsInitialized()
|
||||
if (ImageViewer *iv = currentImageViewer())
|
||||
iv->togglePlay();
|
||||
});
|
||||
|
||||
a = registerNewAction(Constants::ACTION_EXPORT_IMAGE, tr("Export Image"),
|
||||
QKeySequence());
|
||||
connect(a, &QAction::triggered, this, [this]() {
|
||||
if (ImageViewer *iv = currentImageViewer())
|
||||
iv->exportImage();
|
||||
});
|
||||
}
|
||||
|
||||
QAction *ImageViewerPlugin::registerNewAction(Core::Id id,
|
||||
|
||||
Reference in New Issue
Block a user