mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-11 17:18:10 +03:00
Style name removed from font serializer
This commit is contained in:
parent
24bc4f9b9d
commit
f10647e987
@ -179,9 +179,9 @@ void XmlFontSerializator::save(const QVariant &value, QString name)
|
|||||||
_node.setAttribute("Type","QFont");
|
_node.setAttribute("Type","QFont");
|
||||||
_node.setAttribute("family",font.family());
|
_node.setAttribute("family",font.family());
|
||||||
_node.setAttribute("pointSize",font.pointSize());
|
_node.setAttribute("pointSize",font.pointSize());
|
||||||
#if QT_VERSION>0x040800
|
//#if QT_VERSION>0x040800
|
||||||
_node.setAttribute("stylename",font.styleName());
|
// _node.setAttribute("stylename",font.styleName());
|
||||||
#endif
|
//#endif
|
||||||
_node.setAttribute("weight",font.weight());
|
_node.setAttribute("weight",font.weight());
|
||||||
//saveBool(_node,"bold",font.bold());
|
//saveBool(_node,"bold",font.bold());
|
||||||
saveBool(_node,"italic",font.italic());
|
saveBool(_node,"italic",font.italic());
|
||||||
@ -194,9 +194,9 @@ QVariant XmlFontSerializator::loadValue()
|
|||||||
QFont font;
|
QFont font;
|
||||||
font.setFamily(node()->attribute("family"));
|
font.setFamily(node()->attribute("family"));
|
||||||
font.setPointSize(node()->attribute("pointSize").toInt());
|
font.setPointSize(node()->attribute("pointSize").toInt());
|
||||||
#if QT_VERSION>0x040800
|
//#if QT_VERSION>0x040800
|
||||||
font.setStyleName(node()->attribute("stylename"));
|
// font.setStyleName(node()->attribute("stylename"));
|
||||||
#endif
|
//#endif
|
||||||
font.setWeight(node()->attribute("weight").toInt());
|
font.setWeight(node()->attribute("weight").toInt());
|
||||||
if (!node()->attribute("bold").isEmpty())
|
if (!node()->attribute("bold").isEmpty())
|
||||||
font.setBold(node()->attribute("bold").toInt());
|
font.setBold(node()->attribute("bold").toInt());
|
||||||
|
Loading…
Reference in New Issue
Block a user