Commit 61a3aad1 authored by dt's avatar dt
Browse files

Qt4ProjectManager: updateFileList on a external folder change

Task-Nr: QTCREATORBUG-3001
parent 6bfe8c88
...@@ -719,6 +719,7 @@ void Qt4PriFileNode::folderChanged(const QString &folder) ...@@ -719,6 +719,7 @@ void Qt4PriFileNode::folderChanged(const QString &folder)
} }
contents.updateSubFolders(this, this); contents.updateSubFolders(this, this);
m_project->updateFileList();
} }
bool Qt4PriFileNode::deploysFolder(const QString &folder) const bool Qt4PriFileNode::deploysFolder(const QString &folder) const
......
...@@ -192,6 +192,9 @@ public: ...@@ -192,6 +192,9 @@ public:
Internal::CentralizedFolderWatcher *centralizedFolderWatcher(); Internal::CentralizedFolderWatcher *centralizedFolderWatcher();
// For Qt4ProFileNode after a on disk change
void updateFileList();
signals: signals:
/// emitted after parse /// emitted after parse
void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *node); void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *node);
...@@ -220,7 +223,7 @@ private: ...@@ -220,7 +223,7 @@ private:
void updateCodeModels(); void updateCodeModels();
void updateCppCodeModel(); void updateCppCodeModel();
void updateQmlJSCodeModel(); void updateQmlJSCodeModel();
void updateFileList();
static void collectLeafProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node); static void collectLeafProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node);
static void collectApplicationProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node); static void collectApplicationProFiles(QList<Internal::Qt4ProFileNode *> &list, Internal::Qt4ProFileNode *node);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment