diff options
author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2018-09-06 09:03:55 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-09-11 10:00:58 +0000 |
commit | 08508522fe15e1d8eb6db2886bde7e0d8a8c60da (patch) | |
tree | 0f2f61ff6c4f4238403d2dda4412fd273b18fe0b /src/libs/utils/pathchooser.h | |
parent | bdc1ea1d7442a3938de693d576cddb5473c5c3cd (diff) |
Expand QTC variables from PathChooser
This would allow to use QTC variables in settings using this widget
such as Extra Debugging Helpers.
Change-Id: I8ac6de46f359f58a501f09774d992a19b48d7d5f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/pathchooser.h')
-rw-r--r-- | src/libs/utils/pathchooser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h index deaaf4f05d7..73939e1bf48 100644 --- a/src/libs/utils/pathchooser.h +++ b/src/libs/utils/pathchooser.h @@ -39,6 +39,7 @@ QT_END_NAMESPACE namespace Utils { class FancyLineEdit; +class MacroExpander; class Environment; class PathChooserPrivate; @@ -135,6 +136,11 @@ public: // Enable a history completer with a history of entries. void setHistoryCompleter(const QString &historyKey, bool restoreLastItemFromHistory = false); + // Sets a macro expander that is used when producing path and fileName. + // By default, the global expander is used. + // nullptr can be passed to disable macro expansion. + void setMacroExpander(MacroExpander *macroExpander); + bool isReadOnly() const; void setReadOnly(bool b); |