QmlDesigner: fix Qt6 detection

Change-Id: If7c5677c0f448b4fd1507fe42a96f0cb8db2ad5b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2022-10-17 17:45:29 +02:00
committed by Marco Bubke
parent eb66018767
commit a450a6707e

View File

@@ -116,7 +116,7 @@ bool ExternalDependencies::isQt6Import() const
if (target) {
QtSupport::QtVersion *currentQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
if (currentQtVersion && currentQtVersion->isValid()) {
return currentQtVersion->qtVersion().majorVersion() != 6;
return currentQtVersion->qtVersion().majorVersion() == 6;
}
}