Parse tag version in pattern file.

--HG--
branch : feature
This commit is contained in:
dismine 2014-05-21 20:33:40 +03:00
parent 7a5f12b77d
commit 2896d7feeb

View File

@ -215,7 +215,8 @@ void VPattern::Parse(const Document::Documents &parse, VMainGraphicsScene *scene
if (domElement.isNull() == false) if (domElement.isNull() == false)
{ {
QStringList tags; QStringList tags;
tags << TagDraw << TagIncrements << TagAuthor << TagDescription << TagNotes << TagMeasurements; tags << TagDraw << TagIncrements << TagAuthor << TagDescription << TagNotes << TagMeasurements
<< TagVersion;
switch (tags.indexOf(domElement.tagName())) switch (tags.indexOf(domElement.tagName()))
{ {
case 0: // TagDraw case 0: // TagDraw
@ -248,8 +249,10 @@ void VPattern::Parse(const Document::Documents &parse, VMainGraphicsScene *scene
break; break;
case 5: // TagMeasurements case 5: // TagMeasurements
break; break;
case 6: // TagVersion
break;
default: default:
qDebug()<<"Wrong tag name"<<Q_FUNC_INFO; qDebug()<<"Wrong tag name"<<domElement.tagName()<<Q_FUNC_INFO;
break; break;
} }
} }