forked from qt-creator/qt-creator
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:
@@ -540,6 +540,12 @@ void TargetSetupPage::doInitializePage()
|
|||||||
updateVisibility();
|
updateVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TargetSetupPage::showEvent(QShowEvent *event)
|
||||||
|
{
|
||||||
|
WizardPage::showEvent(event);
|
||||||
|
setFocus(); // Ensure "Configure Project" gets triggered on <Return>
|
||||||
|
}
|
||||||
|
|
||||||
void TargetSetupPage::changeAllKitsSelections()
|
void TargetSetupPage::changeAllKitsSelections()
|
||||||
{
|
{
|
||||||
if (m_ui->allKitsCheckBox->checkState() == Qt::PartiallyChecked)
|
if (m_ui->allKitsCheckBox->checkState() == Qt::PartiallyChecked)
|
||||||
|
@@ -88,6 +88,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
void doInitializePage();
|
void doInitializePage();
|
||||||
|
|
||||||
|
void showEvent(QShowEvent *event) final;
|
||||||
|
|
||||||
void handleKitAddition(Kit *k);
|
void handleKitAddition(Kit *k);
|
||||||
void handleKitRemoval(Kit *k);
|
void handleKitRemoval(Kit *k);
|
||||||
void handleKitUpdate(Kit *k);
|
void handleKitUpdate(Kit *k);
|
||||||
|
Reference in New Issue
Block a user