Skip to content

Commit

Permalink
provide Target instead of generic QObject
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Oct 28, 2023
1 parent 98def99 commit d670de2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/project_manager/ros_run_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ namespace Internal {

const char ROS_RC_ID[] = "ROSProjectManager.ROSRunConfiguration";

ROSRunConfiguration::ROSRunConfiguration(Target *parent, Utils::Id id) :
RunConfiguration(parent, id),
m_stepList(new RunStepList(this, Constants::ROS_RUN_STEP_LIST_ID))
ROSRunConfiguration::ROSRunConfiguration(Target *target, Utils::Id id) :
RunConfiguration(target, id),
m_stepList(new RunStepList(target, Constants::ROS_RUN_STEP_LIST_ID))
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/project_manager/ros_run_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ROSRunConfiguration : public ProjectExplorer::RunConfiguration
friend class ROSRunConfigurationFactory;

public:
ROSRunConfiguration(ProjectExplorer::Target *parent, Utils::Id id);
ROSRunConfiguration(ProjectExplorer::Target *target, Utils::Id id);

// RunConfiguration
QString disabledReason() const override;
Expand Down
8 changes: 4 additions & 4 deletions src/project_manager/ros_run_step.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const char STEPS_PREFIX[] = "ProjectExplorer.RunStepList.Step.";


RunStep::RunStep(RunStepList *rsl, Utils::Id id) :
ProjectConfiguration(rsl, id)
ProjectConfiguration(rsl->target(), id)
{
//
}
Expand Down Expand Up @@ -249,10 +249,10 @@ bool RunStep::enabled() const
return m_enabled;
}

RunStepList::RunStepList(QObject *parent, Utils::Id id) :
ProjectConfiguration(parent, id)
RunStepList::RunStepList(ProjectExplorer::Target *target, Utils::Id id) :
ProjectConfiguration(target, id)
{
Q_ASSERT(parent);
Q_ASSERT(target);
setDefaultDisplayName(tr("Run"));
}

Expand Down
2 changes: 1 addition & 1 deletion src/project_manager/ros_run_step.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class RunStepList : public ProjectExplorer::ProjectConfiguration
Q_OBJECT

public:
RunStepList(QObject *parent, Utils::Id id);
RunStepList(ProjectExplorer::Target *target, Utils::Id id);
~RunStepList() override;

void clear();
Expand Down

0 comments on commit d670de2

Please sign in to comment.