Export notes in recipe.

This commit is contained in:
Roman Telezhynskyi 2020-10-28 15:48:19 +02:00
parent 612a48710e
commit d609214f92

View File

@ -89,7 +89,7 @@ VPatternRecipe::VPatternRecipe(VContainer *data, VAbstractPattern *pattern, QObj
QDomElement recipeElement = createElement(QStringLiteral("recipe")); QDomElement recipeElement = createElement(QStringLiteral("recipe"));
recipeElement.appendChild(createComment(FileComment())); recipeElement.appendChild(createComment(FileComment()));
SetAttribute(recipeElement, QStringLiteral("version"), QStringLiteral("1.1.0")); SetAttribute(recipeElement, QStringLiteral("version"), QStringLiteral("1.2.0"));
recipeElement.appendChild(Prerequisite()); recipeElement.appendChild(Prerequisite());
recipeElement.appendChild(Content()); recipeElement.appendChild(Content());
@ -1105,6 +1105,7 @@ inline void VPatternRecipe::ToolAttributes(QDomElement &step, T *tool)
{ {
SetAttribute(step, AttrType, T::ToolType); SetAttribute(step, AttrType, T::ToolType);
SetAttribute(step, AttrLabel, tool->name()); SetAttribute(step, AttrLabel, tool->name());
SetAttribute(step, AttrNotes, tool->GetNotes());
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------