summaryrefslogtreecommitdiff
path: root/src/plugins/qmakeprojectmanager/qmakekitinformation.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-07-12 16:27:45 +0200
committerTobias Hunger <tobias.hunger@qt.io>2016-07-14 15:34:06 +0000
commitcb14fb0d715f22b32fb9880fd26e20715fcdc5a7 (patch)
tree9abb67bb500505de5c813aba8d6b92a6793a4847 /src/plugins/qmakeprojectmanager/qmakekitinformation.cpp
parentce9ca1f0ef4af4695e6c57983fc89a8bbc49976d (diff)
downloadqt-creator-cb14fb0d715f22b32fb9880fd26e20715fcdc5a7.tar.gz
Kits: Save several ToolChains per kit
BREAKS BACKWARD COMPATIBILITY OF TOOLCHAIN SETTINGS! * Convert old ToolChainKitInformation to new version * Store several toolchains in one kit (one per language) Change-Id: Ia59a2ad067c57971ec34ce9b2e43758344443755 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakekitinformation.cpp')
-rw-r--r--src/plugins/qmakeprojectmanager/qmakekitinformation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakekitinformation.cpp b/src/plugins/qmakeprojectmanager/qmakekitinformation.cpp
index d241c25514..79fb578658 100644
--- a/src/plugins/qmakeprojectmanager/qmakekitinformation.cpp
+++ b/src/plugins/qmakeprojectmanager/qmakekitinformation.cpp
@@ -76,7 +76,7 @@ void QmakeKitInformation::setup(Kit *k)
if (spec.isEmpty())
spec = version->mkspec();
- ToolChain *tc = ToolChainKitInformation::toolChain(k);
+ ToolChain *tc = ToolChainKitInformation::toolChain(k, ToolChain::Language::Cxx);
if (!tc || (!tc->suggestedMkspecList().empty() && !tc->suggestedMkspecList().contains(spec))) {
ToolChain *possibleTc = 0;
@@ -142,7 +142,7 @@ FileName QmakeKitInformation::defaultMkspec(const Kit *k)
if (!version) // No version, so no qmake
return FileName();
- return version->mkspecFor(ToolChainKitInformation::toolChain(k));
+ return version->mkspecFor(ToolChainKitInformation::toolChain(k, ToolChain::Language::Cxx));
}
} // namespace QmakeProjectManager