ProjectExplorer: Set focus to TargetSetupPage when shown

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

Fixes: QTCREATORBUG-20720
Change-Id: Ib20848cf2b4a1a2fcd33f9652a9a09796fd85c54
(cherry picked from commit b1d3eee42d)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-11-05 11:42:38 +01:00
parent 913490a4e4
commit 0eb65f7211
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);