corrections to support pattern schema v0.3.7

--HG--
branch : feature
This commit is contained in:
Ronan Le Tiec 2016-10-16 20:38:29 +02:00
parent f91b3dc955
commit 588da2c9a8
4 changed files with 14 additions and 1 deletions

View File

@ -41,6 +41,7 @@
- [#560] Flipped pattern pieces in Layout.
- [#138] New tool: 'Mirror Point' or 'Symmetric Point'.
- [#573] New tool: 'Move Point'.
- [#577] 10 new colors added for the lines
# Version 0.4.5 October 15, 2016
- [#435] Valentina doesn't change the cursor.

View File

@ -20,6 +20,7 @@
<file>schema/pattern/v0.3.4.xsd</file>
<file>schema/pattern/v0.3.5.xsd</file>
<file>schema/pattern/v0.3.6.xsd</file>
<file>schema/pattern/v0.3.7.xsd</file>
<file>schema/standard_measurements/v0.3.0.xsd</file>
<file>schema/standard_measurements/v0.4.0.xsd</file>
<file>schema/standard_measurements/v0.4.1.xsd</file>
@ -29,6 +30,5 @@
<file>schema/individual_measurements/v0.3.1.xsd</file>
<file>schema/individual_measurements/v0.3.2.xsd</file>
<file>schema/individual_measurements/v0.3.3.xsd</file>
<file>schema/pattern/v0.3.7.xsd</file>
</qresource>
</RCC>

View File

@ -264,6 +264,10 @@ void VPatternConverter::ApplyPatches()
ValidateXML(XSDSchema(0x000306), fileName);
V_FALLTHROUGH
case (0x000306):
ToV0_3_7();
ValidateXML(XSDSchema(0x000307), fileName);
V_FALLTHROUGH
case (0x000307):
break;
default:
break;
@ -438,6 +442,13 @@ void VPatternConverter::ToV0_3_6()
Save();
}
//---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::ToV0_3_7()
{
SetVersion(QStringLiteral("0.3.7"));
Save();
}
//---------------------------------------------------------------------------------------------------------------------
void VPatternConverter::TagUnitToV0_2_0()
{

View File

@ -95,6 +95,7 @@ private:
void ToV0_3_4();
void ToV0_3_5();
void ToV0_3_6();
void ToV0_3_7();
void TagUnitToV0_2_0();
void TagIncrementToV0_2_0();