-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpqt5makecleanstepfactory.cpp
More file actions
44 lines (31 loc) · 1.09 KB
/
Copy pathphpqt5makecleanstepfactory.cpp
File metadata and controls
44 lines (31 loc) · 1.09 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "phpqt5makecleanstepfactory.h"
#include "phpqt5buildconfiguration.h"
#include "phpqt5makecleanstep.h"
#include "phpqt5constants.h"
#include <projectexplorer/projectexplorerconstants.h>
#include <memory>
using namespace ProjectExplorer;
namespace PHPQt5 {
PHPQt5MakeCleanStepFactory::PHPQt5MakeCleanStepFactory(QObject *parent)
: IBuildStepFactory(parent)
{}
QList<BuildStepInfo> PHPQt5MakeCleanStepFactory::availableSteps(BuildStepList *parent) const
{
if (parent->id() != ProjectExplorer::Constants::BUILDSTEPS_CLEAN)
return {};
PHPQt5BuildConfiguration* bc = qobject_cast<PHPQt5BuildConfiguration *>(parent->parent());
if (!bc || bc->hasPHPQt5MakeCleanStep())
return {};
return {{ Constants::C_PHPQt5MAKECLEANSTEP_ID,
tr(PHPQt5::Constants::C_PHPQt5MAKECLEANSTEP_DISPLAY),
BuildStepInfo::Unclonable }};
}
BuildStep *PHPQt5MakeCleanStepFactory::create(BuildStepList *parent, Core::Id)
{
return new PHPQt5MakeCleanStep(parent);
}
BuildStep *PHPQt5MakeCleanStepFactory::clone(BuildStepList *, BuildStep *)
{
return nullptr;
}
}