forked from qt-creator/qt-creator
McuSupport: 3rd party packages creation tests
Change-Id: I0f9ed6c49b28007c617627525fc081ae9152e3f1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Yasser Grimes
parent
a0af1fa927
commit
9b47b1575a
@@ -37,15 +37,13 @@ McuPackage::McuPackage(const SettingsHandler::Ptr &settingsHandler,
|
||||
const QStringList &versions,
|
||||
const QString &downloadUrl,
|
||||
const McuPackageVersionDetector *versionDetector,
|
||||
const bool addToSystemPath,
|
||||
const FilePath &relativePathModifier)
|
||||
const bool addToSystemPath)
|
||||
: settingsHandler(settingsHandler)
|
||||
, m_label(label)
|
||||
, m_defaultPath(settingsHandler->getPath(settingsKey, QSettings::SystemScope, defaultPath))
|
||||
, m_detectionPath(detectionPath)
|
||||
, m_settingsKey(settingsKey)
|
||||
, m_versionDetector(versionDetector)
|
||||
, m_relativePathModifier(relativePathModifier)
|
||||
, m_versions(versions)
|
||||
, m_cmakeVariableName(cmakeVarName)
|
||||
, m_environmentVariableName(envVarName)
|
||||
@@ -100,7 +98,7 @@ FilePath McuPackage::basePath() const
|
||||
|
||||
FilePath McuPackage::path() const
|
||||
{
|
||||
return (basePath() / m_relativePathModifier.path()).cleanPath();
|
||||
return basePath().cleanPath();
|
||||
}
|
||||
|
||||
FilePath McuPackage::defaultPath() const
|
||||
|
||||
Reference in New Issue
Block a user