forked from qt-creator/qt-creator
ProjectExplorer: Move more polishing to KitWidget construction
Change-Id: I0dfa27f57f305ebe0439adef810124b8b45ef45f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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()
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user