forked from qt-creator/qt-creator
qmake: Add knowsFile() method to QmakePriFile
Change-Id: Ib3f0799313afdb141270caa135b208a300078bc5 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
8f0697e33d
commit
e06e00c23c
@@ -380,6 +380,11 @@ void QmakePriFile::watchFolders(const QSet<QString> &folders)
|
|||||||
m_watchedFolders = folders;
|
m_watchedFolders = folders;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool QmakePriFile::knowsFile(const FileName &filePath) const
|
||||||
|
{
|
||||||
|
return m_recursiveEnumerateFiles.contains(filePath);
|
||||||
|
}
|
||||||
|
|
||||||
bool QmakePriFile::folderChanged(const QString &changedFolder, const QSet<FileName> &newFiles)
|
bool QmakePriFile::folderChanged(const QString &changedFolder, const QSet<FileName> &newFiles)
|
||||||
{
|
{
|
||||||
qCDebug(qmakeParse()) << "QmakePriFile::folderChanged";
|
qCDebug(qmakeParse()) << "QmakePriFile::folderChanged";
|
||||||
|
|||||||
@@ -122,6 +122,8 @@ public:
|
|||||||
|
|
||||||
QmakePriFile *findPriFile(const Utils::FileName &fileName);
|
QmakePriFile *findPriFile(const Utils::FileName &fileName);
|
||||||
|
|
||||||
|
bool knowsFile(const Utils::FileName &filePath) const;
|
||||||
|
|
||||||
void makeEmpty();
|
void makeEmpty();
|
||||||
|
|
||||||
QSet<Utils::FileName> files(const ProjectExplorer::FileType &type) const;
|
QSet<Utils::FileName> files(const ProjectExplorer::FileType &type) const;
|
||||||
@@ -210,6 +212,7 @@ private:
|
|||||||
static void processValues(Internal::QmakePriFileEvalResult &result);
|
static void processValues(Internal::QmakePriFileEvalResult &result);
|
||||||
void watchFolders(const QSet<QString> &folders);
|
void watchFolders(const QSet<QString> &folders);
|
||||||
|
|
||||||
|
|
||||||
QmakeProject *m_project = nullptr;
|
QmakeProject *m_project = nullptr;
|
||||||
QmakeProFile *m_qmakeProFile = nullptr;
|
QmakeProFile *m_qmakeProFile = nullptr;
|
||||||
QmakePriFile *m_parent = nullptr;
|
QmakePriFile *m_parent = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user