forked from qt-creator/qt-creator
Add "Minimal required Qt version: Qt 6" option to QQ application wizards
Provide a Qt 6 option that does not use any versioned imports. Also make Qt 5.15 the new default. Fixes: QTCREATORBUG-24973 Change-Id: I43714e5e344d1d91d35c5ad298edf28bc32ff7d6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -495,6 +495,10 @@ QSet<Id> BaseQtVersion::availableFeatures() const
|
||||
if (qtVersion().matches(5, 15))
|
||||
return features;
|
||||
|
||||
// Qt 6 uses versionless imports
|
||||
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_PREFIX, 6, -1));
|
||||
features.unite(versionedIds(Constants::FEATURE_QT_QUICK_CONTROLS_2_PREFIX, 6, -1));
|
||||
|
||||
return features;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user