Target setup page: Fix some glitches

- Make sure the "Manage" button is always enabled.
- Clear the list of possible build configs and collapse
  the details widget when a kit becomes unusable.
- Do not collapse the details widget when it gets selected.
- The "Details" button was sometimes grayed out when it shouldn't
  have been.

Change-Id: Ibc0f44213b633aebddfa7542d7dbdd0244df23f9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2019-10-31 15:48:42 +01:00
parent 6c1b11dd3e
commit 5cd474522a
6 changed files with 50 additions and 6 deletions

View File

@@ -229,6 +229,16 @@ void DetailsWidget::setUseCheckBox(bool b)
d->updateControls();
}
void DetailsWidget::setCheckable(bool b)
{
d->m_summaryCheckBox->setEnabled(b);
}
void DetailsWidget::setExpandable(bool b)
{
d->m_detailsButton->setEnabled(b);
}
void DetailsWidget::setChecked(bool b)
{
d->m_summaryCheckBox->setChecked(b);