From def04e88a2dcd9c5920e55618cc7222a5addb42c Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 16 Apr 2018 11:49:25 +0200 Subject: 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 --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') 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()->addToMainConfigurationWidget(this, fl); - runConfiguration->extraAspect()->addToMainConfigurationWidget(this, fl); + runConfiguration->extraAspect()->addToConfigurationLayout(fl); + runConfiguration->extraAspect()->addToConfigurationLayout(fl); connect(runConfiguration->target(), &Target::applicationTargetsChanged, this, [this, scriptLabel] { scriptLabel->setText(QDir::toNativeSeparators(m_runConfiguration->mainScript())); -- cgit v1.2.1