mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
@@ -176,6 +176,12 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) {
|
|||||||
font_.fromString(dom_elmt.attribute("font"));
|
font_.fromString(dom_elmt.attribute("font"));
|
||||||
setFont(font_);
|
setFont(font_);
|
||||||
}
|
}
|
||||||
|
else if (dom_elmt.hasAttribute("font_size")) {
|
||||||
|
#if TODO_LIST
|
||||||
|
#pragma message("@TODO plc-user: remove again, when elements are converted!")
|
||||||
|
#endif
|
||||||
|
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
#if TODO_LIST
|
#if TODO_LIST
|
||||||
#pragma message("@TODO remove in futur")
|
#pragma message("@TODO remove in futur")
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ void ExportDialog::generateSvg(
|
|||||||
|
|
||||||
// "joue" la QPicture sur un QSvgGenerator
|
// "joue" la QPicture sur un QSvgGenerator
|
||||||
QSvgGenerator svg_engine;
|
QSvgGenerator svg_engine;
|
||||||
svg_engine.setSize(QSize(width, height));
|
svg_engine.setSize(QSize((width*9/16), (height*9/16)));
|
||||||
svg_engine.setOutputDevice(&io_device);
|
svg_engine.setOutputDevice(&io_device);
|
||||||
QPainter svg_painter(&svg_engine);
|
QPainter svg_painter(&svg_engine);
|
||||||
picture.play(&svg_painter);
|
picture.play(&svg_painter);
|
||||||
|
|||||||
Reference in New Issue
Block a user