From 1a95f6f20545b9e73351a559c903629c46be4817 Mon Sep 17 00:00:00 2001 From: con Date: Mon, 21 Dec 2009 11:08:20 +0100 Subject: Implement string based search & replace in multiple files. This uses the same UI as "Rename Symbol". Moves the actual rename implementation to a static method in BaseFileFind and uses it for rename symbol and search & replace. Moves the signal notification for the code model from VCSManager to the more general FileManager. Note that as for rename symbol, there's no undo yet. Task-number: QTCREATORBUG-73 --- src/plugins/cpptools/cpptoolsplugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp') diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 5f5e0011a7..7b758237c0 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -99,10 +100,11 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error) // Objects m_modelManager = new CppModelManager(this); Core::VCSManager *vcsManager = core->vcsManager(); + Core::FileManager *fileManager = core->fileManager(); connect(vcsManager, SIGNAL(repositoryChanged(QString)), m_modelManager, SLOT(updateModifiedSourceFiles())); - connect(vcsManager, SIGNAL(filesChanged(QStringList)), - m_modelManager, SLOT(updateModifiedSourceFiles())); + connect(fileManager, SIGNAL(filesChangedInternally(QStringList)), + m_modelManager, SLOT(updateSourceFiles(QStringList))); addAutoReleasedObject(m_modelManager); m_completion = new CppCodeCompletion(m_modelManager); -- cgit v1.2.1