提交 fdae1bbc 编写于 作者: A Anthony Torres 提交者: jp9000

UI: Add text autoselect for source rename

上级 bd718392
......@@ -259,6 +259,7 @@ void SourceTreeItem::EnterEditMode()
setFocusPolicy(Qt::StrongFocus);
boxLayout->removeWidget(label);
editor = new QLineEdit(label->text());
editor->selectAll();
editor->installEventFilter(this);
boxLayout->insertWidget(1, editor);
setFocusProxy(editor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册