forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
@@ -35,9 +35,6 @@ class IosQtVersionFactory : public QtSupport::QtVersionFactory
|
||||
public:
|
||||
explicit IosQtVersionFactory(QObject *parent = nullptr);
|
||||
|
||||
bool canRestore(const QString &type) override;
|
||||
|
||||
int priority() const override;
|
||||
QtSupport::BaseQtVersion *create(const Utils::FileName &qmakePath, ProFileEvaluator *evaluator,
|
||||
bool isAutoDetected = false,
|
||||
const QString &autoDetectionSource = QString()) override;
|
||||
|
||||
Reference in New Issue
Block a user