New tag "version" in empty pattern file.

--HG--
branch : feature
This commit is contained in:
dismine 2014-05-21 17:40:21 +03:00
parent da34abaa85
commit 107b131fdf
2 changed files with 7 additions and 0 deletions

View file

@ -84,6 +84,11 @@ void VPattern::CreateEmptyFile(const QString &tablePath)
QDomElement patternElement = this->createElement(TagPattern);
patternElement.appendChild(createComment("Valentina pattern format."));
QDomElement version = createElement(TagVersion);
QDomText newNodeText = createTextNode(VAL_STR_VERSION);
version.appendChild(newNodeText);
patternElement.appendChild(createElement(TagAuthor));
patternElement.appendChild(createElement(TagDescription));
patternElement.appendChild(createElement(TagNotes));

View file

@ -53,6 +53,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Document::Documents)
// max support version of format
#define VAL_VERSION 0x000100
#define VAL_STR_VERSION "0.1.0"
/**
* @brief The VPattern class working with pattern file.
*/