set default-value for QFont::Weight to prevent warning at runtime

This commit is contained in:
plc-user
2025-03-05 06:55:14 +01:00
parent a1572be8fa
commit d073e810b8

View File

@@ -1275,7 +1275,7 @@ QFont QETApp::diagramTextsItemFont(qreal size)
9.0).toDouble();
auto diagram_texts_item_weight =
static_cast<QFont::Weight>(
settings.value("diagramitemweight").toInt());
settings.value("diagramitemweight", QFont::Normal).toInt());
QString diagram_texts_item_style = settings.value("diagramitemstyle",
"normal").toString();