forked from qt-creator/qt-creator
TextEditor: Use a signal to clear contents help id.
That's the last user of the internal m_editor back link. Change-Id: I32b6e617428b72dc713147cb542b726cf33b6562 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -6725,8 +6725,7 @@ void BaseTextEditorWidgetPrivate::updateCursorPosition()
|
||||
.arg(q->textDocument()->tabSettings().columnAt(block.text(),
|
||||
column)+1),
|
||||
tr("Line: 9999, Col: 999"));
|
||||
if (m_editor)
|
||||
m_editor->m_contextHelpId.clear();
|
||||
q->clearContentsHelpId();
|
||||
|
||||
if (!block.isVisible())
|
||||
q->ensureCursorVisible();
|
||||
@@ -7331,6 +7330,9 @@ BaseTextEditor *BaseTextEditorFactory::createEditorHelper(const BaseTextDocument
|
||||
connect(widget, &BaseTextEditorWidget::activateEditor,
|
||||
[editor]() { Core::EditorManager::activateEditor(editor); });
|
||||
|
||||
connect(widget, &BaseTextEditorWidget::clearContentsHelpId,
|
||||
[editor]() { editor->setContextHelpId(QString()); });
|
||||
|
||||
widget->finalizeInitialization();
|
||||
editor->finalizeInitialization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user