summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljscompletionassist.h
diff options
context:
space:
mode:
authorAlexey Semenko <igogo.dev@gmail.com>2013-08-28 01:02:26 +0400
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-09-03 14:44:41 +0200
commitda4c4b80f3b9047ee4d87c7c7c7a7e073ab23ead (patch)
treea665efd7ed84ec7b1ccba4c17026f1cd4afb65ea /src/plugins/qmljseditor/qmljscompletionassist.h
parentadee8336bbc1365149dbcd33b0e05a2096c4dfa8 (diff)
downloadqt-creator-da4c4b80f3b9047ee4d87c7c7c7a7e073ab23ead.tar.gz
Completions: move continuations upper in proposals list.
Since fuzzy completions are allowed, the lexicographically first proposal is not necessarily most relevant. The patch modifies sorting of proposals so that the exact match and continuations go first, and fuzzy completions follow. Moreover, being a continuation seem to be a more important characteristic of a proposal, than being it a function argument or keyword etc. That's why the check for continuation is placed before the check for order. Task-number: QTCREATORBUG-8737 Task-number: QTCREATORBUG-9236 Change-Id: I89aae9d2ce6bfa59af7c2f75e6f3af00212008ca Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alexey Zhondin <lexxmark.dev@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljscompletionassist.h')
-rw-r--r--src/plugins/qmljseditor/qmljscompletionassist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljscompletionassist.h b/src/plugins/qmljseditor/qmljscompletionassist.h
index 04fa64cd45..828d556ba1 100644
--- a/src/plugins/qmljseditor/qmljscompletionassist.h
+++ b/src/plugins/qmljseditor/qmljscompletionassist.h
@@ -70,7 +70,7 @@ public:
{}
virtual void filter(const QString &prefix);
- virtual void sort();
+ virtual void sort(const QString &prefix);
virtual bool keepPerfectMatch(TextEditor::AssistReason reason) const;
};