forked from qt-creator/qt-creator
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:
@@ -654,6 +654,11 @@ void PathChooser::installLineEditVersionToolTip(QLineEdit *le, const QStringList
|
|||||||
ef->setArguments(arguments);
|
ef->setArguments(arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PathChooser::setHistoryCompleter(const QString &historyKey)
|
||||||
|
{
|
||||||
|
d->m_lineEdit->setHistoryCompleter(historyKey);
|
||||||
|
}
|
||||||
|
|
||||||
QStringList PathChooser::commandVersionArguments() const
|
QStringList PathChooser::commandVersionArguments() const
|
||||||
{
|
{
|
||||||
return d->m_binaryVersionToolTipEventFilter ?
|
return d->m_binaryVersionToolTipEventFilter ?
|
||||||
|
|||||||
@@ -128,6 +128,9 @@ public:
|
|||||||
// Install a tooltip on lineedits used for binaries showing the version.
|
// Install a tooltip on lineedits used for binaries showing the version.
|
||||||
static void installLineEditVersionToolTip(QLineEdit *le, const QStringList &arguments);
|
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;
|
bool isReadOnly() const;
|
||||||
void setReadOnly(bool b);
|
void setReadOnly(bool b);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user