ProjectExplorer: Move more polishing to KitWidget construction

Change-Id: I0dfa27f57f305ebe0439adef810124b8b45ef45f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-12 09:49:11 +01:00
parent 4590a3c8f5
commit dde7857543
2 changed files with 4 additions and 5 deletions

View File

@@ -126,6 +126,10 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
addAspectToWorkingCopy(aspect); addAspectToWorkingCopy(aspect);
updateVisibility(); updateVisibility();
if (k && k->isAutoDetected())
makeStickySubWidgetsReadOnly();
setVisible(false);
} }
KitManagerConfigWidget::~KitManagerConfigWidget() KitManagerConfigWidget::~KitManagerConfigWidget()

View File

@@ -47,11 +47,6 @@ public:
KitNode(Kit *k) KitNode(Kit *k)
{ {
widget = new KitManagerConfigWidget(k); widget = new KitManagerConfigWidget(k);
if (widget) {
if (k && k->isAutoDetected())
widget->makeStickySubWidgetsReadOnly();
widget->setVisible(false);
}
} }
~KitNode() override ~KitNode() override