23 #include <QDomElement>
24 #include <QDomDocument>
31 QString defaultFontString = settings.value(
"/Composer/defaultFont" ).toString();
32 if ( !defaultFontString.isEmpty() )
34 mFont.setFamily( defaultFontString );
52 if ( elem.isNull() )
return;
54 QDomElement styleElem = doc.createElement(
"style" );
56 styleElem.setAttribute(
"name", name );
63 styleElem.setAttribute(
"font",
mFont.toString() );
65 elem.appendChild( styleElem );
71 if ( elem.isNull() )
return;
73 mFont.fromString( elem.attribute(
"font" ) );
75 mMarginMap[
Top] = elem.attribute(
"marginTop",
"0" ).toDouble();
105 if ( styleName ==
"hidden" )
return Hidden;
106 else if ( styleName ==
"title" )
return Title;
107 else if ( styleName ==
"group" )
return Group;
108 else if ( styleName ==
"subgroup" )
return Subgroup;
109 else if ( styleName ==
"symbol" )
return Symbol;
110 else if ( styleName ==
"symbolLabel" )
return SymbolLabel;