summaryrefslogtreecommitdiff
path: root/src/plugins/analyzerbase/analyzerruncontrol.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-27 14:07:23 +0100
committerhjk <hjk@theqtcompany.com>2016-01-27 16:34:01 +0000
commitf2012bca8f3d4f5617559dc3227c4cc412b4713e (patch)
tree56938d2a7461c388e0ecebb1b1d3bec0ed7ee477 /src/plugins/analyzerbase/analyzerruncontrol.cpp
parent06a99af0f6ddb759cd90ebc6083749d92b667a1a (diff)
downloadqt-creator-f2012bca8f3d4f5617559dc3227c4cc412b4713e.tar.gz
Analyzer: Remove explicit working directory storage in run control
Instead, use the one in its (Standard)Runnable. The change is mechanical except to the fallback to the project directory which was introduced in 8150209f to keep some compatibility with the previous setup of the Android runner which created and copied the fallback value around and ignored it in the end. Not producing the fallback value is less effort. Change-Id: Ie04da570f0f9fbc1d048f2eacaed522f7253afa3 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/analyzerbase/analyzerruncontrol.cpp')
-rw-r--r--src/plugins/analyzerbase/analyzerruncontrol.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/plugins/analyzerbase/analyzerruncontrol.cpp b/src/plugins/analyzerbase/analyzerruncontrol.cpp
index 93819b7d7d..b7769e8db9 100644
--- a/src/plugins/analyzerbase/analyzerruncontrol.cpp
+++ b/src/plugins/analyzerbase/analyzerruncontrol.cpp
@@ -52,14 +52,6 @@ AnalyzerRunControl::AnalyzerRunControl(RunConfiguration *runConfiguration, Core:
{
setIcon(Icons::ANALYZER_CONTROL_START);
- if (runConfiguration) {
- setDisplayName(runConfiguration->displayName());
- if (auto aspect = runConfiguration->extraAspect<WorkingDirectoryAspect>())
- m_workingDirectory = aspect->workingDirectory().toString();
- if (m_workingDirectory.isEmpty())
- m_workingDirectory = runConfiguration->target()->project()->projectDirectory().toString();
- }
-
connect(this, &AnalyzerRunControl::finished,
this, &AnalyzerRunControl::runControlFinished);
connect(AnalyzerManager::stopAction(), &QAction::triggered,
@@ -88,11 +80,6 @@ void AnalyzerRunControl::runControlFinished()
AnalyzerManager::handleToolFinished();
}
-QString AnalyzerRunControl::workingDirectory() const
-{
- return m_workingDirectory;
-}
-
void AnalyzerRunControl::start()
{
AnalyzerManager::handleToolStarted();
@@ -118,9 +105,4 @@ bool AnalyzerRunControl::isRunning() const
return m_isRunning;
}
-void AnalyzerRunControl::setWorkingDirectory(const QString &workingDirectory)
-{
- m_workingDirectory = workingDirectory;
-}
-
} // namespace Analyzer