mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
fix font-size of graphical elements "input"
This commit is contained in:
parent
5df77291fe
commit
06a6e5e5f4
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user