forked from qt-creator/qt-creator
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:
@@ -391,6 +391,8 @@ void QrcEditor::onAddPrefix()
|
|||||||
QUndoCommand * const addEmptyPrefixCommand = new AddEmptyPrefixCommand(m_treeview);
|
QUndoCommand * const addEmptyPrefixCommand = new AddEmptyPrefixCommand(m_treeview);
|
||||||
m_history.push(addEmptyPrefixCommand);
|
m_history.push(addEmptyPrefixCommand);
|
||||||
updateHistoryControls();
|
updateHistoryControls();
|
||||||
|
m_ui.prefixText->selectAll();
|
||||||
|
m_ui.prefixText->setFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Slot for 'Undo' button
|
// Slot for 'Undo' button
|
||||||
|
|||||||
Reference in New Issue
Block a user