forked from qt-creator/qt-creator
QmlProjectManager: Make sure project tree updates after in project file change
Use FileManager instead of our own FileSystemWatcher, since this one only signals the first file change (cause Qt Creator apparently removes the file and creates a new one on each change). Change-Id: Idacd545e41cd3ee29bfbc122526b9097039c65d0 Reviewed-on: http://codereview.qt-project.org/4975 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
@@ -100,8 +100,9 @@ public:
|
||||
|
||||
bool addFiles(const QStringList &filePaths);
|
||||
|
||||
private slots:
|
||||
void refreshProjectFile();
|
||||
|
||||
private slots:
|
||||
void refreshFiles(const QSet<QString> &added, const QSet<QString> &removed);
|
||||
|
||||
protected:
|
||||
@@ -124,7 +125,6 @@ private:
|
||||
// qml based, new format
|
||||
QDeclarativeEngine m_engine;
|
||||
QWeakPointer<QmlProjectItem> m_projectItem;
|
||||
Utils::FileSystemWatcher *m_fileWatcher;
|
||||
|
||||
Internal::QmlProjectNode *m_rootNode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user