forked from qt-creator/qt-creator
AutoTest: Use aspect as member in TestRunConfiguration
Change-Id: If39015ec0b10a7b77e558bb04e83d06d1367173a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -23,7 +23,8 @@ class TestRunConfiguration : public ProjectExplorer::RunConfiguration
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestRunConfiguration(ProjectExplorer::Target *parent, TestConfiguration *config)
|
TestRunConfiguration(ProjectExplorer::Target *parent, TestConfiguration *config)
|
||||||
: ProjectExplorer::RunConfiguration(parent, "AutoTest.TestRunConfig")
|
: ProjectExplorer::RunConfiguration(parent, "AutoTest.TestRunConfig"),
|
||||||
|
debuggerAspect(parent)
|
||||||
{
|
{
|
||||||
setDefaultDisplayName(QCoreApplication::translate("QtC::Autotest", "AutoTest Debug"));
|
setDefaultDisplayName(QCoreApplication::translate("QtC::Autotest", "AutoTest Debug"));
|
||||||
|
|
||||||
@@ -31,8 +32,8 @@ public:
|
|||||||
if (auto debuggable = dynamic_cast<DebuggableTestConfiguration *>(config))
|
if (auto debuggable = dynamic_cast<DebuggableTestConfiguration *>(config))
|
||||||
enableQuick = debuggable->mixedDebugging();
|
enableQuick = debuggable->mixedDebugging();
|
||||||
|
|
||||||
auto debugAspect = addAspect<Debugger::DebuggerRunConfigurationAspect>(parent);
|
registerAspect(&debuggerAspect);
|
||||||
debugAspect->setUseQmlDebugger(enableQuick);
|
debuggerAspect.setUseQmlDebugger(enableQuick);
|
||||||
ProjectExplorer::ProjectExplorerPlugin::updateRunActions();
|
ProjectExplorer::ProjectExplorerPlugin::updateRunActions();
|
||||||
m_testConfig = config;
|
m_testConfig = config;
|
||||||
}
|
}
|
||||||
@@ -50,6 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
TestConfiguration *m_testConfig = nullptr;
|
TestConfiguration *m_testConfig = nullptr;
|
||||||
|
Debugger::DebuggerRunConfigurationAspect debuggerAspect;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
Reference in New Issue
Block a user