Improve detection of no Qt usage

Handle .pro-files which remove everything from the QT variable as
not using Qt as well as those .pro files using CONFIG -= qt.

Change-Id: I7cc3740ce256093b7d14593e9ff0a6919fd02615
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-02-01 16:55:25 +01:00
parent 5a5c3abe37
commit ccf7caec4f

View File

@@ -275,7 +275,7 @@ QList<ProjectExplorer::ToolChain *> Qt4BaseTarget::possibleToolChains(ProjectExp
QList<Qt4ProFileNode *> profiles = qt4Project()->allProFiles();
bool qtUsed = false;
foreach (Qt4ProFileNode *pro, profiles) {
if (!pro->variableValue(QtVar).isEmpty()) {
if (pro->variableValue(ConfigVar).contains(QLatin1String("qt")) && !pro->variableValue(QtVar).isEmpty()) {
qtUsed = true;
break;
}