Commit 759fd36a authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: The editor plugin doesn’t need to track currentEditorChanged

This was done to do a semantic re-highlight, but the CppEditorSupport
now handles this by also listening for currentEditorChanged signals.

Change-Id: Iaca6212f88c8d02203727f5d89d093c328b9e33c
Reviewed-by: default avatarNikolai Kosjar <>
parent 848d7d65
......@@ -306,9 +306,6 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
connect(ProgressManager::instance(), SIGNAL(allTasksFinished(Core::Id)),
this, SLOT(onAllTasksFinished(Core::Id)));
connect(EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
return true;
......@@ -390,15 +387,6 @@ void CppEditorPlugin::onAllTasksFinished(Core::Id type)
void CppEditorPlugin::currentEditorChanged(IEditor *editor)
if (!editor)
if (CPPEditorWidget *editorWidget = currentCppEditorWidget())
editorWidget->semanticRehighlight(/*force = */ true);
void CppEditorPlugin::openTypeHierarchy()
if (currentCppEditorWidget()) {
......@@ -90,7 +90,6 @@ public slots:
private slots:
void onTaskStarted(Core::Id type);
void onAllTasksFinished(Core::Id type);
void currentEditorChanged(Core::IEditor *editor);
private slots:
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