GH-2101 select everything when editing instance names
This commit is contained in:
parent
54e857a7f5
commit
e8c382bede
@ -389,6 +389,7 @@ void ListViewDelegate::setEditorData(QWidget* editor, const QModelIndex& index)
|
|||||||
QTextEdit * realeditor = qobject_cast<NoReturnTextEdit *>(editor);
|
QTextEdit * realeditor = qobject_cast<NoReturnTextEdit *>(editor);
|
||||||
realeditor->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
|
realeditor->setAlignment(Qt::AlignHCenter | Qt::AlignTop);
|
||||||
realeditor->append(text);
|
realeditor->append(text);
|
||||||
|
realeditor->selectAll();
|
||||||
realeditor->document()->clearUndoRedoStacks();
|
realeditor->document()->clearUndoRedoStacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user