Просмотр исходного кода

UI: Add text autoselect for source rename

Anthony Torres 6 лет назад
Родитель
Сommit
fdae1bbc0f
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      UI/source-tree.cpp

+ 1 - 0
UI/source-tree.cpp

@@ -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);