New tag "version" in empty pattern file.
--HG-- branch : feature
This commit is contained in:
parent
da34abaa85
commit
107b131fdf
|
@ -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));
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user