forked from qt-creator/qt-creator
Utils: Use EnvironmentChange instead of Environment in several places
For path choosers this makes it easier to change the actual base retrospectively based on the device for the file path entered by the user. In other cases "end user code" only knows that something needs to be added to PATH to get a proper environment. This here lets this code to specify the change alone without bothering about the base environment this might be applied to. Change-Id: I726aaa2fd2feb0bee7158f601aac660b0ac6327b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -41,6 +41,7 @@ namespace Utils {
|
||||
class FancyLineEdit;
|
||||
class MacroExpander;
|
||||
class Environment;
|
||||
class EnvironmentChange;
|
||||
class PathChooserPrivate;
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
|
||||
@@ -99,7 +100,7 @@ public:
|
||||
FilePath baseDirectory() const;
|
||||
void setBaseDirectory(const FilePath &base);
|
||||
|
||||
void setEnvironment(const Environment &env);
|
||||
void setEnvironmentChange(const EnvironmentChange &change);
|
||||
|
||||
/** Returns the suggested label title when used in a form layout. */
|
||||
static QString label();
|
||||
|
||||
Reference in New Issue
Block a user