minor: whitespace and comments

This commit is contained in:
plc-user 2025-02-17 19:45:53 +01:00
parent dc836248f0
commit c2a2e5f5eb
4 changed files with 6 additions and 6 deletions

View File

@ -220,7 +220,7 @@ bool DiagramEventAddElement::buildElement()
/**
@brief DiagramEventAddElement::addElement
Add an element at the current pos en current rotation,
Add an element at the current pos and current rotation,
if project autoconductor option is enable, and the element can be wired, we do it.
*/
void DiagramEventAddElement::addElement()

View File

@ -216,7 +216,7 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) {
setFont(font_);
}
else if (dom_elmt.hasAttribute("font_size")) {
// plc-user: for convenience - to support font-size from old 'input' ?")
// to support font-size from old 'input'
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
}
else {

View File

@ -632,8 +632,8 @@ DynamicElementTextItem *Element::parseDynamicText(
const QDomElement &dom_element)
{
DynamicElementTextItem *deti = new DynamicElementTextItem(this);
//Because the xml description of a .elmt file is the same as how a dynamic text field is save to xml in a .qet file
//wa call fromXml, we just change the tagg name (.elmt = dynamic_text, .qet = dynamic_elmt_text)
//Because the xml description of a .elmt file is the same as how a dynamic text field is saved to xml in a .qet file
//we call fromXml, we just change the tagg name (.elmt = dynamic_text, .qet = dynamic_elmt_text)
//and the uuid (because the uuid, is the uuid of the description and not the uuid of instantiated dynamic text field)
QDomElement dom(dom_element.cloneNode(true).toElement());