diff options
author | dt <qtc-committer@nokia.com> | 2011-03-31 17:43:48 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2011-03-31 18:26:51 +0200 |
commit | fcbb38988bd8ba8f8e29b5051179ac6bf25904f6 (patch) | |
tree | a40b87827c4a79cf9b08b1b1c99d6cd395842e6a /src/plugins/cmakeprojectmanager/cmakeproject.h | |
parent | 12fd1dbb703b141f70860d47db5cb34e7f79c9e7 (diff) | |
download | qt-creator-fcbb38988bd8ba8f8e29b5051179ac6bf25904f6.tar.gz |
CMakeProjectManager: Change editing cmake files to not pop up a dialog
Stop watching the cmake files for changes, instead watch the cbp file
for changes. Warn the user that changes in the CMakeLists.txt via a
infobar.
Fixes or obsolets a few bug reports:
Task-Nr: QTCREATORBUG-3123
Task-Nr: QTCREATORBUG-3353
Task-Nr: QTCREATORBUG-2487
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeproject.h')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeproject.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.h b/src/plugins/cmakeprojectmanager/cmakeproject.h index df1b9a7a57..52540fba22 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.h +++ b/src/plugins/cmakeprojectmanager/cmakeproject.h @@ -46,9 +46,11 @@ #include <projectexplorer/filewatcher.h> #include <projectexplorer/buildconfiguration.h> #include <coreplugin/ifile.h> +#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/ieditor.h> #include <QtCore/QXmlStreamReader> +#include <QtCore/QFileSystemWatcher> #include <QtGui/QPushButton> #include <QtGui/QLineEdit> @@ -105,6 +107,8 @@ public: QString uicCommand() const; + bool isProjectFile(const QString &fileName); + signals: /// emitted after parsing void buildTargetsChanged(); @@ -142,8 +146,7 @@ private: CMakeProjectNode *m_rootNode; QStringList m_files; QList<CMakeBuildTarget> m_buildTargets; - ProjectExplorer::FileWatcher *m_watcher; - bool m_insideFileChanged; + QFileSystemWatcher *m_watcher; QSet<QString> m_watchedFiles; QFuture<void> m_codeModelFuture; |