summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-04-21 19:07:07 +0200
committerhjk <hjk@theqtcompany.com>2016-04-22 08:53:59 +0000
commitae9fff17a12ba1cfd9c45583c99997effa5d9cd4 (patch)
treeb54dd0c35bf937d57fcd0fee75c6f4587778caa4 /src/plugins/debugger/debuggerrunconfigurationaspect.cpp
parent0bef62481bc1b91ca360a1b6e2045fa5f52cfb10 (diff)
downloadqt-creator-ae9fff17a12ba1cfd9c45583c99997effa5d9cd4.tar.gz
Use function objects for IRunConfigurationAspect::createConfigurationWidget
Change-Id: Ief70ed8fc2731ad21b00c74407ff4b659d705caf Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggerrunconfigurationaspect.cpp')
-rw-r--r--src/plugins/debugger/debuggerrunconfigurationaspect.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
index 30a2ca80e8..98a4d3ef32 100644
--- a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
+++ b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp
@@ -215,6 +215,7 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(
{
setId("DebuggerAspect");
setDisplayName(tr("Debugger settings"));
+ setRunConfigWidgetCreator([this] { return new Internal::DebuggerRunConfigWidget(this); });
}
void DebuggerRunConfigurationAspect::setUseQmlDebugger(bool value)
@@ -335,9 +336,4 @@ DebuggerRunConfigurationAspect *DebuggerRunConfigurationAspect::create
return new DebuggerRunConfigurationAspect(runConfiguration);
}
-RunConfigWidget *DebuggerRunConfigurationAspect::createConfigurationWidget()
-{
- return new Internal::DebuggerRunConfigWidget(this);
-}
-
} // namespace Debugger