forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/12.0'
Change-Id: Iee11f97dbd0114957e856d02f0ad295813a05431
This commit is contained in:
@@ -13,7 +13,7 @@ instructions:
|
||||
variableValue: "https://ci-files02-hki.ci.qt.io/packages/jenkins/archive/qt/6.6/6.6.0-released/Qt"
|
||||
- type: EnvironmentVariable
|
||||
variableName: QTC_QT_MODULES
|
||||
variableValue: "qt5compat qtbase qtdeclarative qtimageformats qtquick3d qtquickcontrols2 qtquicktimeline qtserialport qtshadertools qtsvg qttools qttranslations qtwebengine"
|
||||
variableValue: "qt5compat qtbase qtdeclarative qtimageformats qtquick3d qtquicktimeline qtserialport qtshadertools qtsvg qttools qttranslations qtwebengine"
|
||||
- type: EnvironmentVariable
|
||||
variableName: MACOSX_DEPLOYMENT_TARGET
|
||||
variableValue: 10.15
|
||||
|
||||
@@ -1909,7 +1909,9 @@ CMakeBuildConfiguration *CMakeBuildSystem::cmakeBuildConfiguration() const
|
||||
static FilePaths librarySearchPaths(const CMakeBuildSystem *bs, const QString &buildKey)
|
||||
{
|
||||
const CMakeBuildTarget cmakeBuildTarget
|
||||
= Utils::findOrDefault(bs->buildTargets(), Utils::equal(&CMakeBuildTarget::title, buildKey));
|
||||
= Utils::findOrDefault(bs->buildTargets(), [buildKey](const auto &target) {
|
||||
return target.title == buildKey && target.targetType != UtilityType;
|
||||
});
|
||||
|
||||
return cmakeBuildTarget.libraryDirectories;
|
||||
}
|
||||
|
||||
@@ -48,10 +48,6 @@ static LocatorMatcherTasks cmakeMatchers(const BuildAcceptor &acceptor)
|
||||
continue;
|
||||
const int index = target.title.indexOf(input, 0, Qt::CaseInsensitive);
|
||||
if (index >= 0) {
|
||||
const FilePath path = target.backtrace.isEmpty()
|
||||
? cmakeProject->projectFilePath()
|
||||
: target.backtrace.last().path;
|
||||
const int line = target.backtrace.isEmpty() ? 0 : target.backtrace.last().line;
|
||||
const FilePath projectPath = cmakeProject->projectFilePath();
|
||||
const QString displayName = target.title;
|
||||
LocatorFilterEntry entry;
|
||||
@@ -62,10 +58,19 @@ static LocatorMatcherTasks cmakeMatchers(const BuildAcceptor &acceptor)
|
||||
return AcceptResult();
|
||||
};
|
||||
}
|
||||
bool realTarget = false;
|
||||
if (!target.backtrace.isEmpty() && target.targetType != UtilityType) {
|
||||
const FilePath path = target.backtrace.last().path;
|
||||
const int line = target.backtrace.last().line;
|
||||
entry.linkForEditor = {path, line};
|
||||
entry.extraInfo = path.shortNativePath();
|
||||
realTarget = true;
|
||||
} else {
|
||||
entry.extraInfo = projectPath.shortNativePath();
|
||||
}
|
||||
entry.highlightInfo = {index, int(input.length())};
|
||||
entry.filePath = cmakeProject->projectFilePath();
|
||||
if (acceptor || realTarget)
|
||||
entries.append(entry);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ FilePath Node::pathOrDirectory(bool dir) const
|
||||
|
||||
QTC_CHECK(!location.needsDevice());
|
||||
QFileInfo fi = location.toFileInfo();
|
||||
while ((!fi.exists() || !fi.isDir()) && !fi.isRoot())
|
||||
while ((!fi.exists() || !fi.isDir()) && !fi.isRoot() && (fi.fileName() != fi.absolutePath()))
|
||||
fi.setFile(fi.absolutePath());
|
||||
return FilePath::fromString(fi.absoluteFilePath());
|
||||
}
|
||||
|
||||
@@ -3984,7 +3984,7 @@ namespace qstring {
|
||||
// Check string "HiDu" QString.
|
||||
// Continue.
|
||||
delete pstring;
|
||||
dummyStatement(&str, &string, pstring);
|
||||
dummyStatement(&str, &string, &pstring);
|
||||
}
|
||||
|
||||
void testQString4()
|
||||
|
||||
Reference in New Issue
Block a user