diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 9305680ad58..d6e3a59301b 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -654,6 +654,11 @@ void PathChooser::installLineEditVersionToolTip(QLineEdit *le, const QStringList ef->setArguments(arguments); } +void PathChooser::setHistoryCompleter(const QString &historyKey) +{ + d->m_lineEdit->setHistoryCompleter(historyKey); +} + QStringList PathChooser::commandVersionArguments() const { return d->m_binaryVersionToolTipEventFilter ? diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h index 2dc33c0c9d0..483c94e576f 100644 --- a/src/libs/utils/pathchooser.h +++ b/src/libs/utils/pathchooser.h @@ -128,6 +128,9 @@ public: // Install a tooltip on lineedits used for binaries showing the version. static void installLineEditVersionToolTip(QLineEdit *le, const QStringList &arguments); + // Enable a history completer with a history of entries. + void setHistoryCompleter(const QString &historyKey); + bool isReadOnly() const; void setReadOnly(bool b);