QtSupport: Claim support for any Qt version with docker

It's hard to draw the line, and it's only about a potentially missing
warning here.

Change-Id: Ie86905d0b8309297965133dedf636b6172a11757
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-25 16:06:16 +02:00
parent 2e09518e9c
commit 6a826bd751

View File

@@ -516,9 +516,11 @@ Tasks BaseQtVersion::validateKit(const Kit *k)
return result; return result;
const Id dt = DeviceTypeKitAspect::deviceTypeId(k); const Id dt = DeviceTypeKitAspect::deviceTypeId(k);
const QSet<Id> tdt = targetDeviceTypes(); if (dt != "DockerDeviceType") {
if (!tdt.isEmpty() && !tdt.contains(dt)) const QSet<Id> tdt = targetDeviceTypes();
result << BuildSystemTask(Task::Warning, tr("Device type is not supported by Qt version.")); if (!tdt.isEmpty() && !tdt.contains(dt))
result << BuildSystemTask(Task::Warning, tr("Device type is not supported by Qt version."));
}
if (ToolChain *tc = ToolChainKitAspect::cxxToolChain(k)) { if (ToolChain *tc = ToolChainKitAspect::cxxToolChain(k)) {
Abi targetAbi = tc->targetAbi(); Abi targetAbi = tc->targetAbi();