From d609214f92dd607147a11bf645c387b2e4dfc54b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 28 Oct 2020 15:48:19 +0200 Subject: [PATCH] Export notes in recipe. --- src/libs/vformat/vpatternrecipe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vformat/vpatternrecipe.cpp b/src/libs/vformat/vpatternrecipe.cpp index 4477a953e..0d86747e6 100644 --- a/src/libs/vformat/vpatternrecipe.cpp +++ b/src/libs/vformat/vpatternrecipe.cpp @@ -89,7 +89,7 @@ VPatternRecipe::VPatternRecipe(VContainer *data, VAbstractPattern *pattern, QObj QDomElement recipeElement = createElement(QStringLiteral("recipe")); 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(Content()); @@ -1105,6 +1105,7 @@ inline void VPatternRecipe::ToolAttributes(QDomElement &step, T *tool) { SetAttribute(step, AttrType, T::ToolType); SetAttribute(step, AttrLabel, tool->name()); + SetAttribute(step, AttrNotes, tool->GetNotes()); } //---------------------------------------------------------------------------------------------------------------------