forked from qt-creator/qt-creator
qmake: Add accessor for file lists to QmakePriFile
Change-Id: I37f9f39eba3bae2376d5349ce597e29fca6cb21f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
f8aaa2e0eb
commit
5a223ca94e
@@ -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:
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user