UI: Add text autoselect for source rename
parent
bd71839259
commit
fdae1bbc0f
|
@ -259,6 +259,7 @@ void SourceTreeItem::EnterEditMode()
|
||||||
setFocusPolicy(Qt::StrongFocus);
|
setFocusPolicy(Qt::StrongFocus);
|
||||||
boxLayout->removeWidget(label);
|
boxLayout->removeWidget(label);
|
||||||
editor = new QLineEdit(label->text());
|
editor = new QLineEdit(label->text());
|
||||||
|
editor->selectAll();
|
||||||
editor->installEventFilter(this);
|
editor->installEventFilter(this);
|
||||||
boxLayout->insertWidget(1, editor);
|
boxLayout->insertWidget(1, editor);
|
||||||
setFocusProxy(editor);
|
setFocusProxy(editor);
|
||||||
|
|
Loading…
Reference in New Issue