Commit 5a223ca9 authored by Tobias Hunger's avatar Tobias Hunger Committed by Tim Jenssen

qmake: Add accessor for file lists to QmakePriFile

Change-Id: I37f9f39eba3bae2376d5349ce597e29fca6cb21f
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent f8aaa2e0
...@@ -291,6 +291,20 @@ void QmakePriFile::makeEmpty() ...@@ -291,6 +291,20 @@ void QmakePriFile::makeEmpty()
m_children.clear(); m_children.clear();
} }
QSet<FileName> QmakePriFile::files(const FileType &type) const
{
return m_files.value(type);
}
bool QmakePriFile::buildsFile(const FileName &fn) const
{
for (auto it = m_files.constBegin(); it != m_files.constEnd(); ++it) {
if (it.value().contains(fn))
return true;
}
return false;
}
QmakePriFile::~QmakePriFile() QmakePriFile::~QmakePriFile()
{ {
watchFolders(QSet<QString>()); watchFolders(QSet<QString>());
......
...@@ -121,6 +121,9 @@ public: ...@@ -121,6 +121,9 @@ public:
QVector<QmakePriFile *> children() const; QVector<QmakePriFile *> children() const;
void makeEmpty(); void makeEmpty();
QSet<Utils::FileName> files(const ProjectExplorer::FileType &type) const;
bool buildsFile(const Utils::FileName &fn) const;
void update(const Internal::QmakePriFileEvalResult &result); void update(const Internal::QmakePriFileEvalResult &result);
// ProjectNode interface // ProjectNode interface
......
Markdown is supported
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