diff options
author | hjk <hjk@qt.io> | 2018-11-13 16:58:02 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-11-28 12:25:23 +0000 |
commit | ccd5955843b08224deb4eebb6355e73b687e569b (patch) | |
tree | 1acf1cba505b0c47e0ffffbd29f306cb0e97b973 /src/plugins/qmakeprojectmanager/qmakeproject.h | |
parent | e744dbab8e5226a8c7175042abaa675591a75616 (diff) | |
download | qt-creator-ccd5955843b08224deb4eebb6355e73b687e569b.tar.gz |
QmakeProjectManager: Make target search operate on project nodes
This makes the using code a bit less dependent on qmake specifics
(qmake related ProjectNode specialization vs qmake-only class)
Change-Id: Ied6ced70694b3ac0665d88ec86c4a66577f3a672
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeproject.h')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeproject.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.h b/src/plugins/qmakeprojectmanager/qmakeproject.h index bfad63d7d2..22060a2a83 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.h +++ b/src/plugins/qmakeprojectmanager/qmakeproject.h @@ -67,9 +67,9 @@ public: QStringList filesGeneratedFrom(const QString &file) const final; enum Parsing {ExactParse, ExactAndCumulativeParse }; - QList<QmakeProFile *> allProFiles(const QList<ProjectType> &projectTypes = QList<ProjectType>(), - Parsing parse = ExactParse) const; - QList<QmakeProFile *> applicationProFiles(Parsing parse = ExactParse) const; + const QList<const QmakeProFileNode *> allProFiles(const QList<ProjectType> &projectTypes = {}, + Parsing parse = ExactParse) const; + QList<const QmakeProFileNode *> applicationProFiles(Parsing parse = ExactParse) const; static void notifyChanged(const Utils::FileName &name); @@ -131,20 +131,17 @@ private: void setAllBuildConfigurationsEnabled(bool enabled); - QString executableFor(const QmakeProFile *file); + QString executableFor(const QmakeProFileNode *node); void updateRunConfigurations(); void updateCppCodeModel(); void updateQmlJSCodeModel(); - static QList<QmakeProFile *> collectAllProFiles(QmakeProFile *file, Parsing parse, - const QList<ProjectType> &projectTypes); - static bool equalFileList(const QStringList &a, const QStringList &b); void updateBuildSystemData(); - void collectData(const QmakeProFile *file, ProjectExplorer::DeploymentData &deploymentData); - void collectApplicationData(const QmakeProFile *file, + void collectData(const QmakeProFileNode *node, ProjectExplorer::DeploymentData &deploymentData); + void collectApplicationData(const QmakeProFileNode *file, ProjectExplorer::DeploymentData &deploymentData); void collectLibraryData(const QmakeProFile *file, ProjectExplorer::DeploymentData &deploymentData); |