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 <>
parent f8aaa2e0
......@@ -291,6 +291,20 @@ void QmakePriFile::makeEmpty()
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;
......@@ -121,6 +121,9 @@ public:
QVector<QmakePriFile *> children() const;
void makeEmpty();
QSet<Utils::FileName> files(const ProjectExplorer::FileType &type) const;
bool buildsFile(const Utils::FileName &fn) const;
void update(const Internal::QmakePriFileEvalResult &result);
// 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