forked from qt-creator/qt-creator
ProjectExplorer: Add a comment regarding the use of EnvironmentAspect
Also, make EnvironmentAspect::environment() non-virtual, it should always be equal to base + user changes. Change-Id: I0259894d5ac3121a840631e37baebdcfa86b198b Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -53,8 +53,10 @@ public:
|
|||||||
QList<Utils::EnvironmentItem> userEnvironmentChanges() const { return m_changes; }
|
QList<Utils::EnvironmentItem> userEnvironmentChanges() const { return m_changes; }
|
||||||
void setUserEnvironmentChanges(const QList<Utils::EnvironmentItem> &diff);
|
void setUserEnvironmentChanges(const QList<Utils::EnvironmentItem> &diff);
|
||||||
|
|
||||||
|
// The environment the user chose as base for his modifications.
|
||||||
virtual Utils::Environment baseEnvironment() const = 0;
|
virtual Utils::Environment baseEnvironment() const = 0;
|
||||||
virtual Utils::Environment environment() const;
|
// The environment including the user's modifications.
|
||||||
|
Utils::Environment environment() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void baseEnvironmentChanged();
|
void baseEnvironmentChanged();
|
||||||
|
Reference in New Issue
Block a user