mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
set default-value for QFont::Weight to prevent warning at runtime
This commit is contained in:
@@ -1275,7 +1275,7 @@ QFont QETApp::diagramTextsItemFont(qreal size)
|
|||||||
9.0).toDouble();
|
9.0).toDouble();
|
||||||
auto diagram_texts_item_weight =
|
auto diagram_texts_item_weight =
|
||||||
static_cast<QFont::Weight>(
|
static_cast<QFont::Weight>(
|
||||||
settings.value("diagramitemweight").toInt());
|
settings.value("diagramitemweight", QFont::Normal).toInt());
|
||||||
QString diagram_texts_item_style = settings.value("diagramitemstyle",
|
QString diagram_texts_item_style = settings.value("diagramitemstyle",
|
||||||
"normal").toString();
|
"normal").toString();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user