forked from qt-creator/qt-creator
TextEditor: Introduce shortcut for forcing a function hint proposal
... and support it in the ClangCodeModel. This allows users to get function signature(s) displayed regardless of where exactly the cursor is on the function call. Fixes: QTCREATORBUG-19394 Change-Id: I033e8774db93680bfc3ee52610b817e0ef8ccc76 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -180,7 +180,7 @@ void CodeAssistantPrivate::process()
|
||||
}
|
||||
|
||||
startAutomaticProposalTimer();
|
||||
} else {
|
||||
} else if (m_assistKind != FunctionHint){
|
||||
m_assistKind = TextEditor::Completion;
|
||||
}
|
||||
}
|
||||
@@ -204,6 +204,8 @@ void CodeAssistantPrivate::requestProposal(AssistReason reason,
|
||||
if (!provider) {
|
||||
if (kind == Completion)
|
||||
provider = m_editorWidget->textDocument()->completionAssistProvider();
|
||||
else if (kind == FunctionHint)
|
||||
provider = m_editorWidget->textDocument()->functionHintAssistProvider();
|
||||
else
|
||||
provider = m_editorWidget->textDocument()->quickFixAssistProvider();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user