diff options
author | con <qtc-committer@nokia.com> | 2009-12-21 11:08:20 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2009-12-21 11:08:52 +0100 |
commit | 1a95f6f20545b9e73351a559c903629c46be4817 (patch) | |
tree | ec6c6de9e8386b0e34536c8d5aed9b39d753b045 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | f229a7618a193438e6eec61aa69d2a35cbf3f5ee (diff) | |
download | qt-creator-1a95f6f20545b9e73351a559c903629c46be4817.tar.gz |
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
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <coreplugin/editormanager/editormanager.h> #include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/vcsmanager.h> +#include <coreplugin/filemanager.h> #include <cppeditor/cppeditorconstants.h> #include <QtCore/QtConcurrentRun> @@ -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); |