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("family",font.family());
|
||||
_node.setAttribute("pointSize",font.pointSize());
|
||||
#if QT_VERSION>0x040800
|
||||
_node.setAttribute("stylename",font.styleName());
|
||||
#endif
|
||||
//#if QT_VERSION>0x040800
|
||||
// _node.setAttribute("stylename",font.styleName());
|
||||
//#endif
|
||||
_node.setAttribute("weight",font.weight());
|
||||
//saveBool(_node,"bold",font.bold());
|
||||
saveBool(_node,"italic",font.italic());
|
||||
@ -194,9 +194,9 @@ QVariant XmlFontSerializator::loadValue()
|
||||
QFont font;
|
||||
font.setFamily(node()->attribute("family"));
|
||||
font.setPointSize(node()->attribute("pointSize").toInt());
|
||||
#if QT_VERSION>0x040800
|
||||
font.setStyleName(node()->attribute("stylename"));
|
||||
#endif
|
||||
//#if QT_VERSION>0x040800
|
||||
// font.setStyleName(node()->attribute("stylename"));
|
||||
//#endif
|
||||
font.setWeight(node()->attribute("weight").toInt());
|
||||
if (!node()->attribute("bold").isEmpty())
|
||||
font.setBold(node()->attribute("bold").toInt());
|
||||
|
Loading…
Reference in New Issue
Block a user