From 759fd36a1eebb6af878b95484e9dc2ef91b90580 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 19 Nov 2013 14:18:09 +0100 Subject: [PATCH] =?UTF-8?q?C++:=20The=20editor=20plugin=20doesn=E2=80=99t?= =?UTF-8?q?=20need=20to=20track=20currentEditorChanged?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Nikolai Kosjar --- src/plugins/cppeditor/cppeditorplugin.cpp | 12 ------------ src/plugins/cppeditor/cppeditorplugin.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp index d7dd630a431..3cedeb58002 100644 --- a/src/plugins/cppeditor/cppeditorplugin.cpp +++ b/src/plugins/cppeditor/cppeditorplugin.cpp @@ -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*)), - SLOT(currentEditorChanged(Core::IEditor*))); - readSettings(); return true; } @@ -390,15 +387,6 @@ void CppEditorPlugin::onAllTasksFinished(Core::Id type) } } -void CppEditorPlugin::currentEditorChanged(IEditor *editor) -{ - if (!editor) - return; - - if (CPPEditorWidget *editorWidget = currentCppEditorWidget()) - editorWidget->semanticRehighlight(/*force = */ true); -} - void CppEditorPlugin::openTypeHierarchy() { if (currentCppEditorWidget()) { diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h index 93d574c6825..a05dc7bdd7f 100644 --- a/src/plugins/cppeditor/cppeditorplugin.h +++ b/src/plugins/cppeditor/cppeditorplugin.h @@ -90,7 +90,6 @@ public slots: private slots: void onTaskStarted(Core::Id type); void onAllTasksFinished(Core::Id type); - void currentEditorChanged(Core::IEditor *editor); #ifdef WITH_TESTS private slots: