forked from qt-creator/qt-creator
QtSupport et al: Move QtVersionFactory to *QtVersion implementation
At most a dozen lines each left. Change-Id: Ifbf34f814266ba7bee83d3fee9db831eb450dfc4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -108,3 +108,16 @@ QSet<Core::Id> IosQtVersion::targetDeviceTypes() const
|
||||
// iOS Qt version supports ios devices as well as simulator.
|
||||
return {Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE};
|
||||
}
|
||||
|
||||
|
||||
// Factory
|
||||
|
||||
IosQtVersionFactory::IosQtVersionFactory()
|
||||
{
|
||||
setQtVersionCreator([] { return new IosQtVersion; });
|
||||
setSupportedType(Constants::IOSQT);
|
||||
setPriority(90);
|
||||
setRestrictionChecker([](const SetupData &setup) {
|
||||
return setup.platforms.contains("ios");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user