Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
b9d10dd0
Commit
b9d10dd0
authored
Feb 21, 2011
by
Christian Kandeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProjectExplorer: Add deployConfiguration() member function to BuildStep.
parent
a8f737c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/plugins/projectexplorer/buildstep.cpp
src/plugins/projectexplorer/buildstep.cpp
+9
-0
src/plugins/projectexplorer/buildstep.h
src/plugins/projectexplorer/buildstep.h
+2
-0
No files found.
src/plugins/projectexplorer/buildstep.cpp
View file @
b9d10dd0
...
...
@@ -35,6 +35,7 @@
#include "buildconfiguration.h"
#include "buildsteplist.h"
#include "deployconfiguration.h"
#include "target.h"
using
namespace
ProjectExplorer
;
...
...
@@ -63,6 +64,14 @@ BuildConfiguration *BuildStep::buildConfiguration() const
return
bc
;
}
DeployConfiguration
*
BuildStep
::
deployConfiguration
()
const
{
DeployConfiguration
*
dc
=
qobject_cast
<
DeployConfiguration
*>
(
parent
()
->
parent
());
if
(
!
dc
)
dc
=
target
()
->
activeDeployConfiguration
();
return
dc
;
}
Target
*
BuildStep
::
target
()
const
{
return
qobject_cast
<
Target
*>
(
parent
()
->
parent
()
->
parent
());
...
...
src/plugins/projectexplorer/buildstep.h
View file @
b9d10dd0
...
...
@@ -45,6 +45,7 @@ namespace ProjectExplorer {
class
BuildConfiguration
;
class
BuildStepList
;
class
DeployConfiguration
;
class
Target
;
/*
...
...
@@ -101,6 +102,7 @@ public:
virtual
bool
immutable
()
const
;
BuildConfiguration
*
buildConfiguration
()
const
;
DeployConfiguration
*
deployConfiguration
()
const
;
Target
*
target
()
const
;
enum
OutputFormat
{
NormalOutput
,
ErrorOutput
,
MessageOutput
,
ErrorMessageOutput
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment