fix font-size of graphical elements "input"

This commit is contained in:
plc-user 2024-03-14 08:55:59 +01:00
parent 5df77291fe
commit 06a6e5e5f4

View File

@ -176,6 +176,12 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) {
font_.fromString(dom_elmt.attribute("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 {
#if TODO_LIST
#pragma message("@TODO remove in futur")