Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ QList<ProjectExplorer::ToolChain *> Qt4BaseTarget::possibleToolChains(ProjectExp ...@@ -275,7 +275,7 @@ QList<ProjectExplorer::ToolChain *> Qt4BaseTarget::possibleToolChains(ProjectExp
QList<Qt4ProFileNode *> profiles = qt4Project()->allProFiles(); QList<Qt4ProFileNode *> profiles = qt4Project()->allProFiles();
bool qtUsed = false; bool qtUsed = false;
foreach (Qt4ProFileNode *pro, profiles) { foreach (Qt4ProFileNode *pro, profiles) {
if (!pro->variableValue(QtVar).isEmpty()) { if (pro->variableValue(ConfigVar).contains(QLatin1String("qt")) && !pro->variableValue(QtVar).isEmpty()) {
qtUsed = true; qtUsed = true;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment