QtSupport et al: Use more data members in QtVersionFactories

Same pattern as for the project configuration factories.

Change-Id: Ia2f85eb2d787965f7a49be3bfe0be20c3f2aed8a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-13 19:14:09 +01:00
parent 5b03c1e059
commit d39dd1e5bd
14 changed files with 35 additions and 108 deletions

View File

@@ -38,16 +38,8 @@ IosQtVersionFactory::IosQtVersionFactory(QObject *parent)
: QtSupport::QtVersionFactory(parent)
{
setQtVersionCreator([] { return new IosQtVersion; });
}
bool IosQtVersionFactory::canRestore(const QString &type)
{
return type == QLatin1String(Constants::IOSQT);
}
int IosQtVersionFactory::priority() const
{
return 90;
setSupportedType(Constants::IOSQT);
setPriority(90);
}
QtSupport::BaseQtVersion *IosQtVersionFactory::create(const Utils::FileName &qmakePath,