Initial parsing of glabels files.
This commit is contained in:
@@ -92,13 +92,13 @@ namespace libglabels
|
||||
|
||||
void XmlPaperParser::parsePaperSizeNode( const QDomElement &node )
|
||||
{
|
||||
QString id = XmlUtil::getAttr( node, "id", "" );
|
||||
QString name = XmlUtil::getAttrI18n( node, "name", "" );
|
||||
QString id = XmlUtil::getStringAttr( node, "id", "" );
|
||||
QString name = XmlUtil::getI18nAttr( node, "name", "" );
|
||||
|
||||
double width = XmlUtil::getAttrLength( node, "width", 0 );
|
||||
double height = XmlUtil::getAttrLength( node, "height", 0 );
|
||||
double width = XmlUtil::getLengthAttr( node, "width", 0 );
|
||||
double height = XmlUtil::getLengthAttr( node, "height", 0 );
|
||||
|
||||
QString pwgSize = XmlUtil::getAttr( node, "pwg_size", "" );
|
||||
QString pwgSize = XmlUtil::getStringAttr( node, "pwg_size", "" );
|
||||
|
||||
Paper *paper = new Paper( id, name, width, height, pwgSize );
|
||||
if ( paper != NULL )
|
||||
|
||||
Reference in New Issue
Block a user