From e8c382bede6a23648339b7d3f290137f9265a7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 23 Nov 2018 21:47:23 +0100 Subject: [PATCH] GH-2101 select everything when editing instance names --- application/groupview/InstanceDelegate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/application/groupview/InstanceDelegate.cpp b/application/groupview/InstanceDelegate.cpp index 56e98ac1..bb5fa776 100644 --- a/application/groupview/InstanceDelegate.cpp +++ b/application/groupview/InstanceDelegate.cpp @@ -389,6 +389,7 @@ void ListViewDelegate::setEditorData(QWidget* editor, const QModelIndex& index) QTextEdit * realeditor = qobject_cast(editor); realeditor->setAlignment(Qt::AlignHCenter | Qt::AlignTop); realeditor->append(text); + realeditor->selectAll(); realeditor->document()->clearUndoRedoStacks(); }