Commit ccf7caec authored by Tobias Hunger's avatar Tobias Hunger
Browse files

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: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 5a5c3abe
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment