forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.6'
Conflicts: src/shared/qbs tests/manual/proparser/main.cpp Change-Id: I13654bf10c14eb6b1d6805fe86b67ac73b2e4d75
This commit is contained in:
@@ -648,14 +648,16 @@ const QtInfo &QtInfo::get(const SymbolGroupValueContext &ctx)
|
||||
std::string moduleName;
|
||||
std::string::size_type exclPos = std::string::npos;
|
||||
std::string::size_type libPos = std::string::npos;
|
||||
std::string::size_type qtPos = std::string::npos;
|
||||
|
||||
const StringList &modules = SymbolGroupValue::getAllModuleNames(ctx);
|
||||
for (StringListConstIt module = modules.begin(), total = modules.end();
|
||||
module != total; ++module) {
|
||||
moduleName = *module;
|
||||
if (moduleName.find("Qt") != std::string::npos) {
|
||||
qtPos = moduleName.find("Qt");
|
||||
if (qtPos != std::string::npos) {
|
||||
libPos = moduleName.find("Core");
|
||||
if (libPos != std::string::npos)
|
||||
if (libPos != std::string::npos && (libPos - qtPos) < 4)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user