ProjectExplorer: Set focus to TargetSetupPage when shown

This ensures the "Configure Project" button can be activated
with <Return>

Fixes: QTCREATORBUG-20720
Change-Id: Ia20848cf2b4a1a2fcd33f9652a9a09796fd85c54
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-11-05 11:42:38 +01:00
parent 95c13eecda
commit b1d3eee42d
2 changed files with 8 additions and 0 deletions

View File

@@ -540,6 +540,12 @@ void TargetSetupPage::doInitializePage()
updateVisibility();
}
void TargetSetupPage::showEvent(QShowEvent *event)
{
WizardPage::showEvent(event);
setFocus(); // Ensure "Configure Project" gets triggered on <Return>
}
void TargetSetupPage::changeAllKitsSelections()
{
if (m_ui->allKitsCheckBox->checkState() == Qt::PartiallyChecked)

View File

@@ -88,6 +88,8 @@ public:
private:
void doInitializePage();
void showEvent(QShowEvent *event) final;
void handleKitAddition(Kit *k);
void handleKitRemoval(Kit *k);
void handleKitUpdate(Kit *k);