add option "transparent background" in SVG-export

This commit is contained in:
plc-user
2024-03-27 14:50:26 +01:00
parent a2beabd559
commit cc20c218d8
4 changed files with 17 additions and 0 deletions

View File

@@ -399,6 +399,13 @@ void ExportDialog::generateSvg(
QIODevice &io_device)
{
saveReloadDiagramParameters(diagram, true);
// FIXME: This is a Quick-and-Dirty-Hack to achieve transparency in SVG-Background:
if (epw->exportProperties().draw_bg_transparent) {
diagram->background_color = Qt::transparent;
} else {
//diagram->background_color = Qt::blue;
}
// genere une QPicture a partir du schema
QPicture picture;