| 9 | #include <QString> |
| 10 | |
| 11 | QMakeIncludeFile::QMakeIncludeFile(const QString& incfile, QMakeFile* parent, const VariableMap& variables) |
| 12 | : QMakeProjectFile(incfile) |
| 13 | , m_parent(parent) |
| 14 | { |
| 15 | m_variableValues = variables; |
| 16 | |
| 17 | setProject(parent->project()); |
| 18 | |
| 19 | auto* pro = dynamic_cast<QMakeProjectFile*>(parent); |
| 20 | if (pro) { |
| 21 | setMkSpecs(pro->mkSpecs()); |
| 22 | setQMakeCache(pro->qmakeCache()); |
| 23 | } else { |
| 24 | auto* specs = dynamic_cast<QMakeMkSpecs*>(parent); |
| 25 | setMkSpecs(specs); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | QString QMakeIncludeFile::pwd() const |
| 30 | { |
nothing calls this directly
no test coverage detected