Fix label parsing and creation issues.

- Parse rotate attribute of Objects node.
- Create proper page size when creating template.
This commit is contained in:
Jim Evins
2017-04-22 00:14:51 -04:00
parent 42b1744901
commit 02630aec19
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -262,6 +262,7 @@ namespace glabels
}
else if ( tagName == "Objects" )
{
label->setRotate( parseRotateAttr( child.toElement() ) );
QList<LabelModelObject*> list = parseObjectsNode( child.toElement(), data );
foreach ( LabelModelObject* object, list )
{
@@ -541,6 +542,13 @@ namespace glabels
}
bool
XmlLabelParser::parseRotateAttr( const QDomElement &node )
{
return XmlUtil::getBoolAttr( node, "rotate", false );
}
void
XmlLabelParser::parsePositionAttrs( const QDomElement &node, LabelModelObject* object )
{