Editor: reuse generic proposal widget

Do not close already visible proposal widget if we get new results for
the same base position. Just replace the model of the widget and update
the prefix.

Change-Id: I298aba6eb8177edc17fea783189a2f987dbf15a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2021-08-13 10:49:30 +02:00
parent 08d8d63f6c
commit 28447355ba
11 changed files with 83 additions and 12 deletions

View File

@@ -236,6 +236,7 @@ const char SNIPPET_EDITOR_ID[] = "TextEditor.SnippetEditor";
const char TEXT_SNIPPET_GROUP_ID[] = "Text";
const char GLOBAL_SETTINGS_ID[] = "Global";
const char GENERIC_PROPOSAL_ID[] = "TextEditor.GenericProposalId";
/**
* Delay before tooltip will be shown near completion assistant proposal