Commit eeee9550 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppTools: Display explicitly marked slots first



...when offering Qt5 style slot completions.

Change-Id: Id23b008601ade3533aea2b6295558ffea178a5da
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 7bd055d4
......@@ -1886,6 +1886,8 @@ bool InternalCppCompletionAssistProcessor::completeQtMethod(const QList<LookupIt
signatures.insert(completionText);
ci->setText(completionText); // fix the completion item.
ci->setIcon(m_icons.iconForSymbol(fun));
if (wantQt5SignalOrSlot && fun->isSlot())
ci->setOrder(1);
m_completions.append(ci);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment