forked from qt-creator/qt-creator
Clang: Decrease order of snippets
The order is 0 by default and thus the snippet items were at the very
top, e.g.:
enum EnumType { EnumValue };
void f()
{
EnumType et = // Complete here and see snippet items at top
}
Change-Id: I70a160d102b91a2589972354c50aa5f0b29323e8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
80352d703c
commit
14428c1586
@@ -40,7 +40,7 @@ using namespace CPlusPlus;
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
CppCompletionAssistProcessor::CppCompletionAssistProcessor()
|
||||
CppCompletionAssistProcessor::CppCompletionAssistProcessor(int snippetItemOrder)
|
||||
: m_positionForProposal(-1)
|
||||
, m_preprocessorCompletions(QStringList()
|
||||
<< QLatin1String("define")
|
||||
@@ -72,7 +72,8 @@ CppCompletionAssistProcessor::CppCompletionAssistProcessor()
|
||||
<< QLatin1String("endif"))
|
||||
, m_hintProposal(0)
|
||||
, m_snippetCollector(QLatin1String(CppEditor::Constants::CPP_SNIPPETS_GROUP_ID),
|
||||
QIcon(QLatin1String(":/texteditor/images/snippet.png")))
|
||||
QIcon(QLatin1String(":/texteditor/images/snippet.png")),
|
||||
snippetItemOrder)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user