0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Finish 1.4.87

This commit is contained in:
Arin Alexander
2018-07-11 12:39:52 +03:00
3 changed files with 8 additions and 7 deletions

View File

@@ -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());