forked from qt-creator/qt-creator
Rename {Analyzer,Debugger}ProjectSettings to *RunConfigurationAspect
Change-Id: I5913ddaaab1a80b1557f0bcf7ebcc15e0e4b74eb Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user