forked from qt-creator/qt-creator
Utils: Start Environment/EnvironmentChange consolidation
The plan is now to keep 'Environment' as the concept name, but have what is currently 'EnvironmentChange' as implementation, as keeping a full env vs env change(set) distiction gets messy. First step is to cut the direct dependency of EnvironmentChange from a (current) Environment that causes circularity when moving the implementation. Change-Id: Id8b512b311071611b750b27af59549ce7c2ce8e6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -974,6 +974,11 @@ void StringAspect::setEnvironmentChange(const EnvironmentChange &change)
|
||||
d->m_pathChooserDisplay->setEnvironmentChange(change);
|
||||
}
|
||||
|
||||
void StringAspect::setEnvironment(const Environment &env)
|
||||
{
|
||||
setEnvironmentChange(EnvironmentChange::fromDictionary(env.toDictionary()));
|
||||
}
|
||||
|
||||
void StringAspect::setBaseFileName(const FilePath &baseFileName)
|
||||
{
|
||||
d->m_baseFileName = baseFileName;
|
||||
|
||||
Reference in New Issue
Block a user