Comment string in pattern file.

--HG--
branch : feature
This commit is contained in:
dismine 2014-01-20 16:21:25 +02:00
parent d269e45858
commit 3681607e7a

View File

@ -128,6 +128,8 @@ void VDomDocument::CreateEmptyFile()
QDomElement domElement = this->createElement("pattern"); QDomElement domElement = this->createElement("pattern");
this->appendChild(domElement); this->appendChild(domElement);
QDomComment info = this->createComment("Valentina pattern format.");
domElement.appendChild(info);
QDomNode xmlNode = this->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\""); QDomNode xmlNode = this->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\"");
this->insertBefore(xmlNode, this->firstChild()); this->insertBefore(xmlNode, this->firstChild());
QDomElement incrElement = this->createElement("increments"); QDomElement incrElement = this->createElement("increments");