summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-04-16 11:49:25 +0200
committerhjk <hjk@qt.io>2018-04-24 07:26:22 +0000
commitdef04e88a2dcd9c5920e55618cc7222a5addb42c (patch)
tree11a9e90c47164c6653f709015518f60d10d42700 /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentd6af336a7eae6cfcc06cabc4d15abaf08c2a7fd9 (diff)
downloadqt-creator-def04e88a2dcd9c5920e55618cc7222a5addb42c.tar.gz
Simplify runconfiguration aspect addTo... interface
The parent widget is always given by the layout, no need to pass it as separate parameter. Change-Id: I9e7ed3a89eb63b78a549471d839060131737ff78 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index c579b8526a..c5aa2e1eb8 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -338,8 +338,8 @@ PythonRunConfigurationWidget::PythonRunConfigurationWidget(PythonRunConfiguratio
fl->addRow(PythonRunConfiguration::tr("Interpreter: "), interpreterChooser);
fl->addRow(PythonRunConfiguration::tr("Script: "), scriptLabel);
- runConfiguration->extraAspect<ArgumentsAspect>()->addToMainConfigurationWidget(this, fl);
- runConfiguration->extraAspect<TerminalAspect>()->addToMainConfigurationWidget(this, fl);
+ runConfiguration->extraAspect<ArgumentsAspect>()->addToConfigurationLayout(fl);
+ runConfiguration->extraAspect<TerminalAspect>()->addToConfigurationLayout(fl);
connect(runConfiguration->target(), &Target::applicationTargetsChanged, this, [this, scriptLabel] {
scriptLabel->setText(QDir::toNativeSeparators(m_runConfiguration->mainScript()));