forked from qt-creator/qt-creator
TextEditor: add text cursor to assist interface
This will allow us to request assistance for a specific selection instead of just the position. Change-Id: Ib8e5b32d4a8f2936e5a6f1b7ac968d7f1d8d9de6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -8169,10 +8169,10 @@ void TextEditorWidget::invokeAssist(AssistKind kind, IAssistProvider *provider)
|
||||
}
|
||||
|
||||
AssistInterface *TextEditorWidget::createAssistInterface(AssistKind kind,
|
||||
AssistReason reason) const
|
||||
AssistReason reason) const
|
||||
{
|
||||
Q_UNUSED(kind)
|
||||
return new AssistInterface(document(), position(), d->m_document->filePath(), reason);
|
||||
return new AssistInterface(textCursor(), d->m_document->filePath(), reason);
|
||||
}
|
||||
|
||||
QString TextEditorWidget::foldReplacementText(const QTextBlock &) const
|
||||
|
||||
Reference in New Issue
Block a user