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>
This commit is contained in:
Alexis Jeandet
2018-09-06 09:03:55 +02:00
committed by hjk
parent bdc1ea1d74
commit 08508522fe
2 changed files with 21 additions and 2 deletions

View File

@@ -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);