blob: 492b4406b4dbc3e77cdc1b0bc44a8545840242a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "jsonwizardpagefactory.h"
#include "../projectexplorerconstants.h"
#include <utils/algorithm.h>
namespace ProjectExplorer {
// --------------------------------------------------------------------
// JsonWizardPageFactory:
// --------------------------------------------------------------------
JsonWizardPageFactory::~JsonWizardPageFactory() = default;
void JsonWizardPageFactory::setTypeIdsSuffixes(const QStringList &suffixes)
{
m_typeIds = Utils::transform(suffixes, [](const QString &suffix) {
return Utils::Id::fromString(QString::fromLatin1(Constants::PAGE_ID_PREFIX) + suffix);});
}
void JsonWizardPageFactory::setTypeIdsSuffix(const QString &suffix)
{
setTypeIdsSuffixes(QStringList() << suffix);
}
} // namespace ProjectExplorer
|