mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
add option "transparent background" in SVG-export
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user