forked from qt-creator/qt-creator
Fixes: Updating the completion for ui files
Details: That is we update all generated headers (which are new or modfied) in the C++ Engine. Big if, this only works if we find the correct path for the ui header files. Which is known to sometimes not work, I'll fix that next.
This commit is contained in:
@@ -35,10 +35,13 @@
|
||||
#define QT4NODES_H
|
||||
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
#include <projectexplorer/project.h>
|
||||
|
||||
#include <QtCore/QHash>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QMap>
|
||||
|
||||
// defined in proitems.h
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -184,8 +187,8 @@ public slots:
|
||||
void scheduleUpdate();
|
||||
void update();
|
||||
private slots:
|
||||
void fileChanged(const QString &filePath);
|
||||
void updateGeneratedFiles();
|
||||
void updateUiFiles();
|
||||
void buildStateChanged(ProjectExplorer::Project*);
|
||||
|
||||
private:
|
||||
Qt4ProFileNode *createSubProFileNode(const QString &path);
|
||||
@@ -205,7 +208,7 @@ private:
|
||||
bool m_isQBuildProject;
|
||||
QTimer m_updateTimer;
|
||||
|
||||
DirectoryWatcher *m_dirWatcher;
|
||||
QMap<QString, QDateTime> m_uitimestamps;
|
||||
friend class Qt4NodeHierarchy;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user