diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-04-09 12:42:41 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-04-21 11:29:37 +0000 |
commit | d1a7176f1c6b737feaf7ce7c48a51a2348bc15c4 (patch) | |
tree | ad1a06b80b24d09eea81e481431bce57b780e87c /src | |
parent | f5e2e6d4f232503ddfd14f7e1eaf7f7852b6b230 (diff) | |
download | qt-creator-d1a7176f1c6b737feaf7ce7c48a51a2348bc15c4.tar.gz |
QmakeProjectManager: Don't add mkspec include dir explicitly
It will be added via INCLUDE anyway.
This also removes all code using BaseQtVersion::systemHeaderPaths(),
which is thus also removed. This function was introduced to support
Symbian.
Change-Id: Id372e1cfc20bd22de948ed9a7d28dfa9135cbfa9
Task-number: QTCREATORBUG-13964
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeproject.cpp | 13 | ||||
-rw-r--r-- | src/plugins/qtsupport/baseqtversion.cpp | 8 | ||||
-rw-r--r-- | src/plugins/qtsupport/baseqtversion.h | 1 |
3 files changed, 0 insertions, 22 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index aaab37486b..8836b5333c 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -507,22 +507,9 @@ void QmakeProject::updateCppCodeModel() // part->defines templatePart->projectDefines += pro->cxxDefines(); - // part->headerPaths - if (qtVersion) { - foreach (const HeaderPath &header, qtVersion->systemHeaderPathes(k)) { - ProjectPart::HeaderPath::Type type = ProjectPart::HeaderPath::IncludePath; - if (header.kind() == HeaderPath::FrameworkHeaderPath) - type = ProjectPart::HeaderPath::FrameworkPath; - templatePart->headerPaths += ProjectPart::HeaderPath(header.path(), type); - } - } - foreach (const QString &inc, pro->variableValue(IncludePathVar)) { const auto headerPath = ProjectPart::HeaderPath(inc, ProjectPart::HeaderPath::IncludePath); - // We've added header paths from qtVersion->systemHeaderPathes() above, - // which also contains the mkspecs dir. However, it's also part of - // the pro->variableValue(IncludePathVar), so check for duplicates. if (!templatePart->headerPaths.contains(headerPath)) templatePart->headerPaths += headerPath; } diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp index 54f7d2910b..7a8d69e52c 100644 --- a/src/plugins/qtsupport/baseqtversion.cpp +++ b/src/plugins/qtsupport/baseqtversion.cpp @@ -1183,14 +1183,6 @@ MacroExpander *BaseQtVersion::macroExpander() const return &m_expander; } -QList<HeaderPath> BaseQtVersion::systemHeaderPathes(const Kit *k) const -{ - Q_UNUSED(k); - QList<HeaderPath> result; - result.append(HeaderPath(mkspecPath().toString(), HeaderPath::GlobalHeaderPath)); - return result; -} - void BaseQtVersion::addToEnvironment(const Kit *k, Environment &env) const { Q_UNUSED(k); diff --git a/src/plugins/qtsupport/baseqtversion.h b/src/plugins/qtsupport/baseqtversion.h index 728466ab8a..8c354fe555 100644 --- a/src/plugins/qtsupport/baseqtversion.h +++ b/src/plugins/qtsupport/baseqtversion.h @@ -146,7 +146,6 @@ public: bool hasDemos() const; QString demosPath() const; - virtual QList<ProjectExplorer::HeaderPath> systemHeaderPathes(const ProjectExplorer::Kit *k) const; virtual QString frameworkInstallPath() const; // former local functions |