forked from qt-creator/qt-creator
McuSupport: Version detection handling for kit requirements
Create appropriate instance of version detector depending on parsed data from JSON and pass it to McuPackage's ctor. Also tests. Change-Id: I4f7e5cd6d998745dfe951284c34904526abc216b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -108,6 +108,11 @@ QStringList McuPackage::versions() const
|
||||
return m_versions;
|
||||
}
|
||||
|
||||
const McuPackageVersionDetector *McuPackage::getVersionDetector() const
|
||||
{
|
||||
return m_versionDetector.get();
|
||||
}
|
||||
|
||||
FilePath McuPackage::basePath() const
|
||||
{
|
||||
return m_fileChooser != nullptr ? m_fileChooser->filePath() : m_path;
|
||||
|
||||
Reference in New Issue
Block a user