mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
fix: specified colors for filled and transparent SVG
This commit is contained in:
@@ -401,10 +401,10 @@ void ExportDialog::generateSvg(
|
|||||||
saveReloadDiagramParameters(diagram, true);
|
saveReloadDiagramParameters(diagram, true);
|
||||||
|
|
||||||
// FIXME: This is a Quick-and-Dirty-Hack to achieve transparency in SVG-Background:
|
// FIXME: This is a Quick-and-Dirty-Hack to achieve transparency in SVG-Background:
|
||||||
if (epw->exportProperties().draw_bg_transparent) {
|
if (epw->exportProperties().draw_bg_transparent == true) {
|
||||||
diagram->background_color = Qt::transparent;
|
diagram->background_color = QColor(255, 255, 255, 0);
|
||||||
} else {
|
} else {
|
||||||
//diagram->background_color = Qt::blue;
|
diagram->background_color = QColor(255, 255, 255, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
// genere une QPicture a partir du schema
|
// genere une QPicture a partir du schema
|
||||||
|
|||||||
Reference in New Issue
Block a user