Rename {Analyzer,Debugger}ProjectSettings to *RunConfigurationAspect

Change-Id: I5913ddaaab1a80b1557f0bcf7ebcc15e0e4b74eb
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-02-23 14:41:28 +01:00
committed by hjk
parent 2153c22812
commit 43f69abea1
11 changed files with 62 additions and 66 deletions

View File

@@ -601,7 +601,7 @@ IAnalyzerEngine *CallgrindToolPrivate::createEngine(const AnalyzerStartParameter
// apply project settings
if (runConfiguration) {
if (const AnalyzerProjectSettings *analyzerSettings = runConfiguration->extraAspect<AnalyzerProjectSettings>()) {
if (const AnalyzerRunConfigurationAspect *analyzerSettings = runConfiguration->extraAspect<AnalyzerRunConfigurationAspect>()) {
if (const ValgrindProjectSettings *settings = analyzerSettings->subConfig<ValgrindProjectSettings>()) {
m_visualisation->setMinimumInclusiveCostRatio(settings->visualisationMinimumInclusiveCostRatio() / 100.0);
m_proxyModel->setMinimumInclusiveCostRatio(settings->minimumInclusiveCostRatio() / 100.0);

View File

@@ -236,7 +236,7 @@ void MemcheckTool::maybeActiveRunConfigurationChanged()
if (ProjectExplorer::Project *project = pe->startupProject()) {
if (ProjectExplorer::Target *target = project->activeTarget()) {
if (ProjectExplorer::RunConfiguration *rc = target->activeRunConfiguration()) {
settings = rc->extraAspect<AnalyzerProjectSettings>();
settings = rc->extraAspect<AnalyzerRunConfigurationAspect>();
}
}
}

View File

@@ -63,7 +63,7 @@ ValgrindEngine::ValgrindEngine(IAnalyzerTool *tool, const AnalyzerStartParameter
m_isStopping(false)
{
if (runConfiguration)
m_settings = runConfiguration->extraAspect<AnalyzerProjectSettings>();
m_settings = runConfiguration->extraAspect<AnalyzerRunConfigurationAspect>();
if (!m_settings)
m_settings = AnalyzerGlobalSettings::instance();