forked from qt-creator/qt-creator
QmlDesigner: fix Qt6 detection
Change-Id: If7c5677c0f448b4fd1507fe42a96f0cb8db2ad5b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -116,7 +116,7 @@ bool ExternalDependencies::isQt6Import() const
|
|||||||
if (target) {
|
if (target) {
|
||||||
QtSupport::QtVersion *currentQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
|
QtSupport::QtVersion *currentQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
|
||||||
if (currentQtVersion && currentQtVersion->isValid()) {
|
if (currentQtVersion && currentQtVersion->isValid()) {
|
||||||
return currentQtVersion->qtVersion().majorVersion() != 6;
|
return currentQtVersion->qtVersion().majorVersion() == 6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user