Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b9d10dd0
Commit
b9d10dd0
authored
Feb 21, 2011
by
Christian Kandeler
Browse files
ProjectExplorer: Add deployConfiguration() member function to BuildStep.
parent
a8f737c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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