forked from qt-creator/qt-creator
Clangd: Create correct code assist processor in provider
... for the context of the code assist instead of using a callback from the text editor. Change-Id: I636b1b267a944895d4ff732e3c0a8811332ec14f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -783,7 +783,6 @@ public:
|
||||
TextMark* m_dragMark = nullptr;
|
||||
|
||||
QScopedPointer<ClipboardAssistProvider> m_clipboardAssistProvider;
|
||||
TextEditorWidget::AssistRequestHandler m_assistRequestHandler;
|
||||
|
||||
QScopedPointer<AutoCompleter> m_autoCompleter;
|
||||
CommentDefinition m_commentDefinition;
|
||||
@@ -3534,11 +3533,6 @@ void TextEditorWidget::showTextMarksToolTip(const QPoint &pos,
|
||||
d->showTextMarksToolTip(pos, marks, mainTextMark);
|
||||
}
|
||||
|
||||
void TextEditorWidget::setAssistRequestHandler(const AssistRequestHandler &handler)
|
||||
{
|
||||
d->m_assistRequestHandler = handler;
|
||||
}
|
||||
|
||||
void TextEditorWidgetPrivate::processTooltipRequest(const QTextCursor &c)
|
||||
{
|
||||
const QPoint toolTipPoint = q->toolTipPosition(c);
|
||||
@@ -8546,9 +8540,6 @@ QTextBlock TextEditorWidget::blockForVerticalOffset(int offset) const
|
||||
|
||||
void TextEditorWidget::invokeAssist(AssistKind kind, IAssistProvider *provider)
|
||||
{
|
||||
if (d->m_assistRequestHandler && d->m_assistRequestHandler(this, kind, provider))
|
||||
return;
|
||||
|
||||
if (kind == QuickFix && d->m_snippetOverlay->isVisible())
|
||||
d->m_snippetOverlay->accept();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user