PathChooser: Grant direct access to lineEdit's history key

Change-Id: I889b5cd0dbc27144253a9c82567eee59554725a3
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
hjk
2013-10-28 18:18:03 +01:00
committed by Tobias Hunger
parent fd8f2c6cdb
commit e5dc99da32
2 changed files with 8 additions and 0 deletions

View File

@@ -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 ?

View File

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