Commit ff30cf72 authored by Eike Ziller's avatar Eike Ziller
Browse files

Android manifest editor: Set focus when switching tabs



Change-Id: I4fd52b852d274783f679b056842b87ba886ddf90
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 5e7b1780
......@@ -554,19 +554,20 @@ bool AndroidManifestEditorWidget::setActivePage(EditorPage page)
if (page == Source) {
syncToEditor();
setFocus();
} else {
if (!syncToWidgets())
return false;
// TODO?
// QWidget *fw = m_overlayWidget->focusWidget();
// if (fw && fw != m_overlayWidget)
// fw->setFocus();
// else
// m_packageNameLineEdit->setFocus();
}
setCurrentIndex(page);
QWidget *cw = currentWidget();
if (cw) {
if (cw->focusWidget())
cw->focusWidget()->setFocus();
else
cw->setFocus();
}
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment