mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
@@ -3009,7 +3009,7 @@ Alle Bauteile und Unterordner von diesem Ordner werden ebenso gelöscht.</transl
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../sources/exportpropertieswidget.cpp" line="214"/>
|
<location filename="../sources/exportpropertieswidget.cpp" line="214"/>
|
||||||
<source>SVG: fond transparent</source>
|
<source>SVG: fond transparent</source>
|
||||||
<translation>SVG-transparenter Hintergrund</translation>
|
<translation>SVG: transparenter Hintergrund</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|||||||
@@ -177,9 +177,7 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) {
|
|||||||
setFont(font_);
|
setFont(font_);
|
||||||
}
|
}
|
||||||
else if (dom_elmt.hasAttribute("font_size")) {
|
else if (dom_elmt.hasAttribute("font_size")) {
|
||||||
#if TODO_LIST
|
// plc-user: for convenience - to support font-size from old 'input' ?")
|
||||||
#pragma message("@TODO plc-user: remove again, when elements are converted!")
|
|
||||||
#endif
|
|
||||||
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
|
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ void PartPolygon::fromXml(const QDomElement &qde)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief PartPolygon::toXml
|
@brief PartPolygon::toXml
|
||||||
Export this polygin in xml
|
Export this polygon in xml
|
||||||
@param xml_document : Xml document to use for create the xml element
|
@param xml_document : Xml document to use for create the xml element
|
||||||
@return an xml element that describe this polygon
|
@return an xml element that describe this polygon
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -96,16 +96,6 @@ const QDomElement PartRectangle::toXml(QDomDocument &xml_document) const
|
|||||||
xml_element.setAttribute("width", QString("%1").arg(m_rect.width()));
|
xml_element.setAttribute("width", QString("%1").arg(m_rect.width()));
|
||||||
xml_element.setAttribute("height", QString("%1").arg(m_rect.height()));
|
xml_element.setAttribute("height", QString("%1").arg(m_rect.height()));
|
||||||
|
|
||||||
QRectF rect = m_rect.normalized();
|
|
||||||
qreal x = m_xRadius;
|
|
||||||
if (x > rect.width()/2) {
|
|
||||||
x = rect.width()/2;
|
|
||||||
}
|
|
||||||
qreal y = m_yRadius;
|
|
||||||
if (y > rect.height()/2) {
|
|
||||||
y = rect.height()/2;
|
|
||||||
}
|
|
||||||
|
|
||||||
xml_element.setAttribute("rx", QString::number(m_xRadius));
|
xml_element.setAttribute("rx", QString::number(m_xRadius));
|
||||||
xml_element.setAttribute("ry", QString::number(m_yRadius));
|
xml_element.setAttribute("ry", QString::number(m_yRadius));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user