diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-07-23 15:45:29 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-07-31 13:12:01 +0000 |
commit | 86747ff36bb162764fd8c2f741a1674d16b0b3cd (patch) | |
tree | ebc9323f57c601ae49af9cff9fe0674fd71bb6ca /src/plugins/generator/iarew/iarewoptionpropertygroup.cpp | |
parent | 2363f13f8fbd001a3544acb2a600010893e4cf80 (diff) |
baremetal: Share common generators code
Common code which are used for the 'iarew' and 'keiluv'
generators was moved to the corelib/generators library.
Besides, this code also can be used in future for the
XML-based generators.
Change-Id: I79a21e3e078d563600d7f365785731fe9e847045
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/generator/iarew/iarewoptionpropertygroup.cpp')
-rw-r--r-- | src/plugins/generator/iarew/iarewoptionpropertygroup.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/generator/iarew/iarewoptionpropertygroup.cpp b/src/plugins/generator/iarew/iarewoptionpropertygroup.cpp index e65182c68..86f12016b 100644 --- a/src/plugins/generator/iarew/iarewoptionpropertygroup.cpp +++ b/src/plugins/generator/iarew/iarewoptionpropertygroup.cpp @@ -29,27 +29,29 @@ ****************************************************************************/ #include "iarewoptionpropertygroup.h" -#include "iarewproperty.h" namespace qbs { IarewOptionPropertyGroup::IarewOptionPropertyGroup( QByteArray name, QVariant version, const QVariantList &states) - : IarewPropertyGroup(QByteArrayLiteral("option")) + : gen::xml::PropertyGroup(QByteArrayLiteral("option")) { // Append name property item. - appendChild<IarewProperty>(QByteArrayLiteral("name"), std::move(name)); + appendChild<gen::xml::Property>(QByteArrayLiteral("name"), + std::move(name)); // Append version property item. if (!version.isNull()) - appendChild<IarewProperty>(QByteArrayLiteral("version"), std::move(version)); + appendChild<gen::xml::Property>(QByteArrayLiteral("version"), + std::move(version)); // Append state property items. for (const auto &state : states) { if (state.isNull()) continue; - appendChild<IarewProperty>(QByteArrayLiteral("state"), std::move(state)); + appendChild<gen::xml::Property>(QByteArrayLiteral("state"), + std::move(state)); } } |