Qt4ProFileNode: Make a project's INSTALLS settings available.

Task-number: QTCREATORBUG-2679
Reviewed-by: dt
This commit is contained in:
Christian Kandeler
2010-10-27 17:19:52 +02:00
parent b45ce84123
commit 1dd1fe6a1b
2 changed files with 63 additions and 0 deletions

View File

@@ -248,6 +248,18 @@ struct TargetInformation
};
struct InstallsItem {
InstallsItem(QString p, QStringList f) : path(p), files(f) {}
QString path;
QStringList files;
};
struct InstallsList {
void clear() { targetPath.clear(); items.clear(); }
QString targetPath;
QList<InstallsItem> items;
};
// Implements ProjectNode for qt4 pro files
class Qt4ProFileNode : public Qt4PriFileNode
{
@@ -279,6 +291,8 @@ public:
TargetInformation targetInformation(const QString &fileName) const;
TargetInformation targetInformation() const;
InstallsList installsList() const;
QString makefile() const;
void update();
@@ -309,6 +323,7 @@ private:
QStringList libDirectories(ProFileReader *reader) const;
QStringList subDirsPaths(ProFileReader *reader) const;
TargetInformation targetInformation(ProFileReader *reader) const;
void setupInstallsList(const ProFileReader *reader);
void invalidate();
@@ -317,6 +332,7 @@ private:
QMap<QString, QDateTime> m_uitimestamps;
TargetInformation m_qt4targetInformation;
InstallsList m_installsList;
friend class Qt4NodeHierarchy;
// Async stuff