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:
@@ -199,5 +199,16 @@ QList<Utils::EnvironmentItem> QnxQtVersion::environment() const
|
||||
return QnxUtils::qnxEnvironment(sdpPath());
|
||||
}
|
||||
|
||||
|
||||
// Factory
|
||||
|
||||
QnxQtVersionFactory::QnxQtVersionFactory()
|
||||
{
|
||||
setQtVersionCreator([] { return new QnxQtVersion; });
|
||||
setSupportedType(Constants::QNX_QNX_QT);
|
||||
setPriority(50);
|
||||
setRestrictionChecker([](const SetupData &setup) { return setup.isQnx; });
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qnx
|
||||
|
||||
Reference in New Issue
Block a user