Debugger: Avoid two uses of IRCAspect::runConfiguration

The function is about to be removed.

Change-Id: Ib18d1c51c18a9a979395910cdcd487575061dea0
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2018-09-11 14:40:57 +02:00
parent 679576b511
commit 8b24fb2a46
3 changed files with 6 additions and 9 deletions

View File

@@ -29,10 +29,13 @@
#include "testconfiguration.h"
#include <debugger/debuggerrunconfigurationaspect.h>
#include <projectexplorer/applicationlauncher.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/devicesupport/devicemanager.h>
#include <projectexplorer/runconfiguration.h>
#include <utils/qtcassert.h>
#include <QCoreApplication>
@@ -54,8 +57,10 @@ public:
if (auto debuggable = dynamic_cast<DebuggableTestConfiguration *>(config))
enableQuick = debuggable->mixedDebugging();
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>())
if (auto debugAspect = extraAspect<Debugger::DebuggerRunConfigurationAspect>()) {
debugAspect->setUseQmlDebugger(enableQuick);
ProjectExplorer::ProjectExplorerPlugin::instance()->updateRunActions();
}
m_testConfig = config;
}

View File

@@ -221,13 +221,6 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(
void DebuggerRunConfigurationAspect::setUseQmlDebugger(bool value)
{
d.useQmlDebugger = value ? EnabledLanguage : DisabledLanguage;
runConfiguration()->requestRunActionsUpdate();
}
void DebuggerRunConfigurationAspect::setUseCppDebugger(bool value)
{
d.useCppDebugger = value ? EnabledLanguage : DisabledLanguage;
runConfiguration()->requestRunActionsUpdate();
}
bool DebuggerRunConfigurationAspect::useCppDebugger() const

View File

@@ -61,7 +61,6 @@ public:
void toMap(QVariantMap &map) const override;
bool useCppDebugger() const;
void setUseCppDebugger(bool value);
bool useQmlDebugger() const;
void setUseQmlDebugger(bool value);
uint qmlDebugServerPort() const;