ResourceEditor: Set focus to the prefix line edit after creating new one

"Add Prefix" adds prefix /new/prefix%1 which should be updated by user most
likely.

Change-Id: I0978574b38eb74b39c1cc8377ef1ab9008a4d88e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tasuku Suzuki
2021-03-26 11:03:18 +09:00
parent 904f59a744
commit c4b730b002

View File

@@ -391,6 +391,8 @@ void QrcEditor::onAddPrefix()
QUndoCommand * const addEmptyPrefixCommand = new AddEmptyPrefixCommand(m_treeview);
m_history.push(addEmptyPrefixCommand);
updateHistoryControls();
m_ui.prefixText->selectAll();
m_ui.prefixText->setFocus();
}
// Slot for 'Undo' button