Fix build of sdktool against older Qt

Use wrapper for SkipEmptyParts, since Qt::SkipEmptyParts is only
available since Qt 5.14.

Change-Id: I26e26aaafd91c8eb002e73124d07306f21365bef
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2020-08-18 13:55:38 +02:00
parent 6db2631ff3
commit d3c31917aa

View File

@@ -303,8 +303,8 @@ FilePaths Environment::path() const
FilePaths Environment::pathListValue(const QString &varName) const
{
const QStringList pathComponents = expandedValueForKey(varName)
.split(OsSpecificAspects::pathListSeparator(m_osType), Qt::SkipEmptyParts);
const QStringList pathComponents = expandedValueForKey(varName).split(
OsSpecificAspects::pathListSeparator(m_osType), SkipEmptyParts);
return transform(pathComponents, &FilePath::fromUserInput);
}