Snippets: Show snippets after "corresponding" keywords.

In some cases snippets have a description. Due to the sorting this
already places them after keywords. So this is just to be consistent
for all cases.
This commit is contained in:
Leandro Melo
2010-09-27 10:28:49 +02:00
parent 769b2103a3
commit 0e0841dac9

View File

@@ -1125,8 +1125,8 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
foreach (ClassOrNamespace *b, usingBindings)
completeNamespace(b);
addSnippets();
addKeywords();
addSnippets();
qStableSort(m_completions.begin(), m_completions.end(), completionItemLessThan);
addMacros(QLatin1String("<configuration>"), context.snapshot());