Utils: Remove AspectContainer ctor's parent parameter

Instead use setParent in the two cases that use it. The parent gets
in the way when attempting to derive AspectContainer from BaseAspect.

Change-Id: I6079beb0e00334133da115b714bc5186064c6722
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2023-07-27 15:13:31 +02:00
parent 9d9e84296a
commit 7d08f96da5
6 changed files with 10 additions and 14 deletions

View File

@@ -32,7 +32,8 @@ ProjectSettingsWidget *createCopilotProjectPanel(Project *project)
using namespace ProjectExplorer;
auto widget = new CopilotProjectSettingsWidget;
auto settings = new CopilotProjectSettings(project, widget);
auto settings = new CopilotProjectSettings(project);
settings->setParent(widget);
QObject::connect(widget,
&ProjectSettingsWidget::useGlobalSettingsChanged,