mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-11 17:18:10 +03:00
font.bold() --> font.weight()
This commit is contained in:
parent
133b1c4054
commit
aa6a61cc47
@ -175,7 +175,8 @@ void XmlFontSerializator::save(const QVariant &value, QString name)
|
||||
_node.setAttribute("family",font.family());
|
||||
_node.setAttribute("pointSize",font.pointSize());
|
||||
_node.setAttribute("stylename",font.styleName());
|
||||
saveBool(_node,"bold",font.bold());
|
||||
_node.setAttribute("weight",font.weight());
|
||||
//saveBool(_node,"bold",font.bold());
|
||||
saveBool(_node,"italic",font.italic());
|
||||
saveBool(_node,"underline",font.underline());
|
||||
node()->appendChild(_node);
|
||||
@ -186,10 +187,12 @@ QVariant XmlFontSerializator::loadValue()
|
||||
QFont font;
|
||||
font.setFamily(node()->attribute("family"));
|
||||
font.setPointSize(node()->attribute("pointSize").toInt());
|
||||
font.setStyleName(node()->attribute("stylename"));
|
||||
font.setWeight(node()->attribute("weight").toInt());
|
||||
if (!node()->attribute("bold").isEmpty())
|
||||
font.setBold(node()->attribute("bold").toInt());
|
||||
font.setItalic(node()->attribute("italic").toInt());
|
||||
font.setUnderline(node()->attribute("underline").toInt());
|
||||
font.setStyleName(node()->attribute("stylename"));
|
||||
return font;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user